Ctrl + P
My replacement for Ctrl + Shift + R
in Eclipse.
Ctrl + Shift + O
My replacement for Ctrl + O
in Eclipse.
Ctrl + F
Alt + Enter
Multiline editing in Visual Studio Code
Ctrl + Shift + P
Then type "open settings."
- On Windows
Shift + Alt + F
- On Mac
Shift + Option + F
- On Ubuntu
Ctrl + Shift + I
https://stackoverflow.com/a/29973358/6146580
See also the Prettier
VSCode Extension.
Shift + Del
Delete a line in Visual Studio without copying it?
Ctrl + K + C
Ctrl + /
Shift + Alt then drag mouse
Ctrl + Shift + Alt then arrow keys
Selecting columns in Visual Studio Code
Ctrl + `
Ctrl + Shift + V
To switch between views
Ctrl + K V
Side-by-side
https://code.visualstudio.com/docs/languages/markdown
I wasn't paying attention to the installer and missed this feature. 😦
Computer\HKEY_CLASSES_ROOT\Directory\shell\vscode
Open with VS Code from right click in Windows Explorer
In launch.json
"vmArgs": [
"-Xms256m",
"-Xmx256m",
"-XX:+HeapDumpOnOutOfMemoryError",
"-XX:HeapDumpPath=${workspaceFolder}/gc.hprof"
]
Alt + Shift + O (Windows)
Option + Shift + O (Mac)
Is there a way to remove unused imports and declarations from Angular 2+?
Emmet abbreviation for new HTML document.
! + Tab
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
</head>
<body></body>
</html>
Ctrl+Shift+P merge
Merge Conflict: Accept All Incoming
How can I accept all current changes in VSCode at once?
Settings >> Editor: Format On Save
Prettier - Code formatter (On GitHub)
See also js-beautify for VS Code.
Go To Definition
and Go To Symbol in Workspace
support for CSS
.