1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/code.md

25 lines
419 B
Markdown
Raw Normal View History

2017-10-24 21:41:53 +05:30
# code
> Visual Studio Code.
2019-01-30 11:19:23 +00:00
> Homepage: <https://github.com/microsoft/vscode>.
2017-10-24 21:41:53 +05:30
- 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_directory}}`
- Open a file or directory in the currently open VS Code window:
`code --reuse-window {{path/to/file_or_directory}}`
- Compare two files in VS Code:
`code -d {{file1}} {{file2}}`