Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 811 Bytes

VSCode.md

File metadata and controls

35 lines (20 loc) · 811 Bytes

VS Code

Command Palette

Command/Ctrl + Shift + P

Multi-line edit

Command + Option + ↑/↓

Auto-save

File → Auto-save

Saves a modified file upon losing focus.

code cmd-line utility

Open the Command Palette, type shell command, and run the "Shell Command: Install 'code' command in PATH".

code <dir> launches VSCode with that directory.

code -r <file> opens the file in VSCode. If the file's directory is already open in a VSCode session then the file opens there. Otherwise in your most recent VSCode session.

Search for a file by name

MacOS: Command + P

Windows / Linux: Ctrl + P

Or you open Command Palette and delete the >, which switches it to "Quick Open" mode for files.