mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 10:22:08 +02:00
28 lines
538 B
Markdown
28 lines
538 B
Markdown
# code
|
|
|
|
> Visual Studio Code.
|
|
> More information: <https://github.com/microsoft/vscode>.
|
|
|
|
- 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}}`
|
|
|
|
- Open VS Code with super user (sudo) permissions:
|
|
|
|
`sudo code {{path/to/file_or_directory}} --user-data-dir`
|