tldr/pages/common/code.md

24 lines
362 B
Markdown
Raw Normal View History

2017-10-24 17:11:53 +01:00
# code
> Visual Studio Code.
- Open VS Code:
`code`
- Open the current directory in VS Code:
`code .`
- Open a file or directory in VS Code:
`code {{path/to/file_or_folder}}`
- Open a file or directory in the currently open VS Code window:
`code --reuse-window {{path/to/file_or_folder}}`
- Compare two files in VS Code:
`code -d {{file1}} {{file2}}`