choco install -y vscode --params "/NoDesktopIcon /NoQuicklaunchIcon /NoContextMenuFiles /NoContextMenuFolders" # /DontAddToPath
code | |
code . | Open code with current directory |
code -r . | Open code with current directory |
code --locale=de | Use specific language |
code -d left.txt right.txt | Compare two files in diff mode. |
code -d -n left.txt right.txt | Compare two files in diff mode in a new instance of code |
code --goto main.cpp:20:5 | Jump to given line and column in file |
code --disable-extensions . | Disable all extensions |
code -help | Summary of options |
code --profile "Data Migration Prj" | Launches VS Code with the specified profile |
argv.json
(for example located under %USERPROFILE%\.vscode
). keybindings.json
. Some interesting shortcuts include: ctrl+pageUp/pagedown | Switch to next/previous window (aka pane?) |
shift+alt + mouse click | Column (box) selection |
ctrl+, | File -> Preferences -> Settings |
ctrl+shift+p or F1 | Command Palette |
ctrl+p | Go to (already opened?) files by typing parts of their names |
ctrl+r | Open a recently opened folder or file (Same as File -> Open Recent ?) |
ctrl+b | Show/hide (toggle) sidebar |
ctrl+0 // ctrl+1 resp. | Set focus to Side Bar, to Editor, respectively. |
ctrl+k z | Enter Zen mode |
ctrl+k m | Set language mode for current file. |
ctrl+space | IntelliSense |
ctrl+shift+i | Toggle developer tools (which displays, among others, messages written from an extension with console.log() ). |
code --profile "Daga Migration Prj"
User/profiles/profile-num
. profile-num
is a number that does not seem to be related to the profile name. ctrl+,
) by assigning a value to "files.encoding"
. Some accepted values include utf
utf8bom
utf16le
utf16be
windows1252
"files.autoGuessEncoding": true
in settings.json
. package.json
) directive browser
. vscode.d.ts
. ….commands.registerCommand()
, or
….commands.registerTextEditorCommand(…)
….commands.executeCommand(…)
, or
[ {"key": "ctrl+shift+i", "command": "workbench.action.toggleDevTools" /* Help -> Toggle Developer Tools. Override when clause (isDeveloper) */ } ]
tsc
). Code.exe
in the installation directory and one in its \bin
directory. PATH
environment variable should be set to the executable in the \bin
directory in order be able to start VS code from the command line. If PATH points to the other executable, Code can be started, but some strange things are happening then.