SlideShare a Scribd company logo
1 of 23
손가락이 편해지는 프로그래밍
벛꽃놀이도 못가고 열혈 교육중인 누구가 가르쳐주는,
왜 손가락이 편해야 하
1   지?

    손가락을 편하게 해주는
2   VS Code Snippets

    손가락을 편하게 해주는
3   VS Shortcuts

    손가락을 편하게 해주는
4   VI Shortcuts
왜 손가락이 편해야 하지?
• 개발자에겐 적이 너무 많아…
손가락을 편하게 해주는 VS Code Snippets

• For <tap>     • Class <tap>
• Forr <tap>    • Class I <tap>
• While <tap>   • Ctor <tap>
• Do <tap>      • ~ <tap>
• If <tap>      • Try <tap>
• Else <tap>    • Prop <tap>
• Swtich<tap>   • Propfull <tap>
• Struct<tap>   • Propg <tap>
• { <tap>       • Foreach <tap>
Why???
• 다음의 코드를 입력해보자.




• 최소 키보드 입력 수는?(방향키 제외)
Code Snippets
• 자주 쓰는 코드덩어리를 조각이름 + <tap> 으로 간단하게 구현해줌
 • 실행원리는 조각 이름이 기존에 선언된 코드로 치환.



• 사용되는 변수도 활성화된 상태라면,
                        Tap키를 사용해서 이동하여 변경 가능!


• 사용자가 직접 Custom한 snippet을 만드는 것이 가능
 • 그러나 오늘은 기본적인 사용법만…
반복문 쉽게넣기
• for <tap>



• forr <tap>



• while <tap>



• do <tap>
조건문 쉽게넣기
• if <tap>



• else <tap>




• swtich<tap>
귀찮은 것들 쉽게 넣기
• Struct <tap>

• {    <tap>


• class <tap>

• class i <tap>

• ctor <tap>

• ~ <tap>
C++에선 안되지만 C#에서 유용한 것들
• Try <tap>



• Prop <tap>

• Propfull <tap>

• Propg <tap>



• Foreach <tap>
이런 정보를 한번에 볼 수 있는 곳
• Tools => Code Snippets Manager
손가락을 편하게 해주는 VS Shortcuts

• Ctrl+ K + Ctrl + C         • Ctrl +L
• Ctrl + K + Ctrl + U        • Ct기 + Shift + L
                              (비슷한 shift +del)
• Ctrl + .
                             • Ctrl + 위/아래F9 / Ctrl + shift + F9
• Ctrl + space bar
                             • Ctrl + Alt + w + 1/2/3/4
• Ctrl + shift + space bar
                             • Ctrl + K + Ctrl + X
• F12 / Ctrl + F12
                             • Alt + 마우스드래그
• Ctrl + shift + 8
                             • Ctrl +K + Ctrl + D
• Ctrl + shift + ,/.
                             • Ctrl + K + Ctrl + F
• shift + Alt + Enter
주석달기 / 주석 없애기
• Ctrl+ K + Ctrl + C
  • 현재 커서 위치의 한 줄을 주석처리 한다.
  • 현재 선택된 영역을 주석 처리한다.



• Ctrl + K + Ctrl + U
  • 현재 커서 위치의 한 줄의 주석처리를 해제한다.
  • 현재 선택된 영역의 주석 처리를 해제한다.
자동입력
• Ctrl + .
  • 자동 추천 창 닫기



• Ctrl + Space bar
  • 자동추천 창 열기



• Ctrl + Shift + Space bar
  • Method의 Parameter 정보 보기 (다형성을 가지지 않은 것은 뜨지 않음 –ㅅ-;)
Definition / Declaration 보기, 돌아오기
• F12
  • Definition 부분으로 가준다!



• Ct기 + F12
  • Declaration 부분으로 가서 볼 수 있다!



• Ctrl + -
  • 위의 두 키로 이동된 부분에서 다시 원래 코드부분으로 가준다!
Debug 도우미들
• F9
  • 현재 커서가 있는 줄에 Breakpoint 지정/해제 해준다.



• Ctrl + shift + F9
  • 모든 Breakpoint들을 삭제!



• Ctrl + Alt + w 입력후 1/2/3/4
  • 조사식(Watch)창을 순서대로 열어준다.
코드 편하게 보기
• Ctrl + 위/아래
  • 커서는 그대로 놔두고 화면을 위 아래로 움직임
  • 단, 멘 처음의 커서 위치가 화면에서 사라지면 커서가 이동해버림….



• Ctrl + Shift + , / .
  • 코드창 확대/축소



• Shift + Alt + Enter
  • 전체화면으로 보기
코드 편하게 정리하기
• Ctrl + L
  • 현재 커서가 위치한 줄 잘라내기

• Ctrl+ Shift + L (비슷한 shift +del)
  • 현재 커서가 위치한 줄 삭제 후 커서를 맨 앞으로 이동 / 커서를 상태 그대로

• Ctrl + K + Ctrl + D
  • 현재 문서 전체의 Indent 정렬

• Ctrl + K + Ctrl + F
  • 선택된 영역의 Indent 정렬
기타 유용한 단축키
• Alt + 마우스드래그
  • 원하는 영역을 드래그로 잡을 수 있다.
  • 이 상태에서 입력을 할 경우 줄단위로 입력된다.



• Ctrl + K + Ctrl + X
  • Code snippet들을 보여준다.
손가락을 편하게 해주는 VI Shortcuts (1)

• h/j/k/l
  • 커서의 좌 / 하 / 상 /우 이동

• i/a
  • 현재커서위치에서 끼어넣기 모드 / 현재커서 다음 위치에서 끼어넣기모드

• o/O
  • 현재 커서의 밑으로 라인 추가 / 현재 커서 위쪽으로 라인 추가

• ^/$/g/G
  • 라인의 첫문자 / 라인의 마지막 문자 / 해당라인 / 맨 마지막 줄로 이동
손가락을 편하게 해주는 VI Shortcuts (2)

• r/R
  • 입력후 현재 커서위치의 문자를 다음입력 문자로 변환 / 바꾸기 모드로 진입

• dd / yy / p
  • 잘라내기 / 복사하기 / 붙여넣기

• Ctrl + P
  • 자동완성 기능

• Ctrl + K
  • 현재 커서가 위치하는 word에 해당하는 manual page가 있다면 열어준다.
손가락을 편하게 해주는 VI Shortcuts (3)

• :sp filename / :vs filename
  • Filename을 가진 파일을 위아래 / 좌우로 화면을 나누어 열어준다.



• /pattern / ?pattern
  • 위에서 아래로 / 아래에서 위로 해당패턴을 search



• Ctrl + w + 화살표 / Ctrl + w + +/-/=
  • 입력시 코드창 마다 이동 / 현재 창의 크기 증가/감소/기본값으로 변경
End - 맺음말
• 단축키를 맹신하지 말자, 실제 이런저런 실력을 볼 때는 모두 손 코딩…



• 단축키 모두 외우려는 것은 절대 비추! 모르면 그냥 무식하게 하자.



• 오늘을 창립기념휴일로 만든 회사느님 정말 감사!



• 이러한 정보를 접하게 해준 MSP와 MS 관계자분들께 감사를!

More Related Content

Featured

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

손가락이 편한 프로그래밍

  • 1. 손가락이 편해지는 프로그래밍 벛꽃놀이도 못가고 열혈 교육중인 누구가 가르쳐주는,
  • 2. 왜 손가락이 편해야 하 1 지? 손가락을 편하게 해주는 2 VS Code Snippets 손가락을 편하게 해주는 3 VS Shortcuts 손가락을 편하게 해주는 4 VI Shortcuts
  • 3. 왜 손가락이 편해야 하지? • 개발자에겐 적이 너무 많아…
  • 4. 손가락을 편하게 해주는 VS Code Snippets • For <tap> • Class <tap> • Forr <tap> • Class I <tap> • While <tap> • Ctor <tap> • Do <tap> • ~ <tap> • If <tap> • Try <tap> • Else <tap> • Prop <tap> • Swtich<tap> • Propfull <tap> • Struct<tap> • Propg <tap> • { <tap> • Foreach <tap>
  • 5. Why??? • 다음의 코드를 입력해보자. • 최소 키보드 입력 수는?(방향키 제외)
  • 6. Code Snippets • 자주 쓰는 코드덩어리를 조각이름 + <tap> 으로 간단하게 구현해줌 • 실행원리는 조각 이름이 기존에 선언된 코드로 치환. • 사용되는 변수도 활성화된 상태라면, Tap키를 사용해서 이동하여 변경 가능! • 사용자가 직접 Custom한 snippet을 만드는 것이 가능 • 그러나 오늘은 기본적인 사용법만…
  • 7. 반복문 쉽게넣기 • for <tap> • forr <tap> • while <tap> • do <tap>
  • 8. 조건문 쉽게넣기 • if <tap> • else <tap> • swtich<tap>
  • 9. 귀찮은 것들 쉽게 넣기 • Struct <tap> • { <tap> • class <tap> • class i <tap> • ctor <tap> • ~ <tap>
  • 10. C++에선 안되지만 C#에서 유용한 것들 • Try <tap> • Prop <tap> • Propfull <tap> • Propg <tap> • Foreach <tap>
  • 11. 이런 정보를 한번에 볼 수 있는 곳 • Tools => Code Snippets Manager
  • 12. 손가락을 편하게 해주는 VS Shortcuts • Ctrl+ K + Ctrl + C • Ctrl +L • Ctrl + K + Ctrl + U • Ct기 + Shift + L (비슷한 shift +del) • Ctrl + . • Ctrl + 위/아래F9 / Ctrl + shift + F9 • Ctrl + space bar • Ctrl + Alt + w + 1/2/3/4 • Ctrl + shift + space bar • Ctrl + K + Ctrl + X • F12 / Ctrl + F12 • Alt + 마우스드래그 • Ctrl + shift + 8 • Ctrl +K + Ctrl + D • Ctrl + shift + ,/. • Ctrl + K + Ctrl + F • shift + Alt + Enter
  • 13. 주석달기 / 주석 없애기 • Ctrl+ K + Ctrl + C • 현재 커서 위치의 한 줄을 주석처리 한다. • 현재 선택된 영역을 주석 처리한다. • Ctrl + K + Ctrl + U • 현재 커서 위치의 한 줄의 주석처리를 해제한다. • 현재 선택된 영역의 주석 처리를 해제한다.
  • 14. 자동입력 • Ctrl + . • 자동 추천 창 닫기 • Ctrl + Space bar • 자동추천 창 열기 • Ctrl + Shift + Space bar • Method의 Parameter 정보 보기 (다형성을 가지지 않은 것은 뜨지 않음 –ㅅ-;)
  • 15. Definition / Declaration 보기, 돌아오기 • F12 • Definition 부분으로 가준다! • Ct기 + F12 • Declaration 부분으로 가서 볼 수 있다! • Ctrl + - • 위의 두 키로 이동된 부분에서 다시 원래 코드부분으로 가준다!
  • 16. Debug 도우미들 • F9 • 현재 커서가 있는 줄에 Breakpoint 지정/해제 해준다. • Ctrl + shift + F9 • 모든 Breakpoint들을 삭제! • Ctrl + Alt + w 입력후 1/2/3/4 • 조사식(Watch)창을 순서대로 열어준다.
  • 17. 코드 편하게 보기 • Ctrl + 위/아래 • 커서는 그대로 놔두고 화면을 위 아래로 움직임 • 단, 멘 처음의 커서 위치가 화면에서 사라지면 커서가 이동해버림…. • Ctrl + Shift + , / . • 코드창 확대/축소 • Shift + Alt + Enter • 전체화면으로 보기
  • 18. 코드 편하게 정리하기 • Ctrl + L • 현재 커서가 위치한 줄 잘라내기 • Ctrl+ Shift + L (비슷한 shift +del) • 현재 커서가 위치한 줄 삭제 후 커서를 맨 앞으로 이동 / 커서를 상태 그대로 • Ctrl + K + Ctrl + D • 현재 문서 전체의 Indent 정렬 • Ctrl + K + Ctrl + F • 선택된 영역의 Indent 정렬
  • 19. 기타 유용한 단축키 • Alt + 마우스드래그 • 원하는 영역을 드래그로 잡을 수 있다. • 이 상태에서 입력을 할 경우 줄단위로 입력된다. • Ctrl + K + Ctrl + X • Code snippet들을 보여준다.
  • 20. 손가락을 편하게 해주는 VI Shortcuts (1) • h/j/k/l • 커서의 좌 / 하 / 상 /우 이동 • i/a • 현재커서위치에서 끼어넣기 모드 / 현재커서 다음 위치에서 끼어넣기모드 • o/O • 현재 커서의 밑으로 라인 추가 / 현재 커서 위쪽으로 라인 추가 • ^/$/g/G • 라인의 첫문자 / 라인의 마지막 문자 / 해당라인 / 맨 마지막 줄로 이동
  • 21. 손가락을 편하게 해주는 VI Shortcuts (2) • r/R • 입력후 현재 커서위치의 문자를 다음입력 문자로 변환 / 바꾸기 모드로 진입 • dd / yy / p • 잘라내기 / 복사하기 / 붙여넣기 • Ctrl + P • 자동완성 기능 • Ctrl + K • 현재 커서가 위치하는 word에 해당하는 manual page가 있다면 열어준다.
  • 22. 손가락을 편하게 해주는 VI Shortcuts (3) • :sp filename / :vs filename • Filename을 가진 파일을 위아래 / 좌우로 화면을 나누어 열어준다. • /pattern / ?pattern • 위에서 아래로 / 아래에서 위로 해당패턴을 search • Ctrl + w + 화살표 / Ctrl + w + +/-/= • 입력시 코드창 마다 이동 / 현재 창의 크기 증가/감소/기본값으로 변경
  • 23. End - 맺음말 • 단축키를 맹신하지 말자, 실제 이런저런 실력을 볼 때는 모두 손 코딩… • 단축키 모두 외우려는 것은 절대 비추! 모르면 그냥 무식하게 하자. • 오늘을 창립기념휴일로 만든 회사느님 정말 감사! • 이러한 정보를 접하게 해준 MSP와 MS 관계자분들께 감사를!

Editor's Notes

  1. http://msdn.microsoft.com/en-us/library/z41h7fat.aspx대체적으로 C++ 공통 스니펫에서 가져옴.
  2. F o r tap tap 1 0 f o r r tap j tap 2 0 f o r tap k tap 3 0 f o r r tap l tap 4 0P r I n t f ( “ % d , % d , % d , % d , %d , \\ n “ , I , j , k , l ) ;  70회
  3. Tools-&gt;option-&gt;environment-&gt;keyboard