Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 3.43 KB

File metadata and controls

98 lines (66 loc) · 3.43 KB

Visual Studio Code

Open source IDE supported by Microsoft very fast and with support for a lot extensions.

Index

Download

Download

Tips

Show whitespaces

This tip it's very useful to when you are create yaml files or programming python to see the code indentation

  1. Go Settings
  2. Search the configuration: editor.renderWhitespace
  3. Change to All

Show whitespaces

Equivalence in visual studio

Sticky scroll

We this feature, you have the context to where you are in the code because the sections stick at the top, e.g. a class definition, method definition, markdown headers, etc.

  1. Go Settings
  2. Search the configuration: sticky
  3. Select the option Edit > Sticky Scroll

Sticky scroll

Enabling Source Link

Visual Studio Code has debugger settings configured per project in the launch.json:

"justMyCode": false,
"symbolOptions": {
    "searchMicrosoftSymbolServer": true,
    "searchNuGetOrgSymbolServer": true
},
"suppressJITOptimizations": true,
"env": {
    "COMPlus_ZapDisable": "1",
    "COMPlus_ReadyToRun": "0"
}

Equivalence in visual studio

Original source of the tutorial .NET Blog

Hotkeys (Shortcuts)

Edit

Menu > File > Preferences > Keyboard Shortcuts

List

Comments

  • Ctrl + K Ctrl + C : Add line comment (editor.action.addCommentLine)
  • Ctrl + K Ctrl + U : Remove line comment (editor.action.removeCommentLine)

Capitalization

  • Ctrl + Shift + U : Transform to uppercase (editor.action.transformToUppercase) Modified by me
  • Ctrl + U : Transform to lowercase (editor.action.transformToLowercase) Modified by me

Files

  • Ctrl + Shift + S : Save All (saveAll) Modified by me

Duplicate line

  • Ctrl + D : Copy line current line to down (editor.action.copyLinesDownAction) Modified by me

Selection

  • Alt + Click with mouse : Multiple cursors to write in multiple lines in the same time. Press esc to exit. Same with vim
  • Shift + Alt + Up Arrow : Cursor column select up (cursorColumnSelectUp) Modified by me
  • Shift + Alt + Down Arrow : Cursor column select down (cursorColumnSelectDown) Modified by me
  • Shift + Alt + Right Arrow : Cursor column select right (cursorColumnSelectRight) Modified by me
  • Shift + Alt + Left Arrow : Cursor column select left (cursorColumnSelectLeft) Modified by me