code
Visual Studio 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}
- Open a file or directory in a new VS Code window:
code --new-window {path/to/file_or_directory}
- Compare two files in VS Code:
code -d {file1} {file2}
- Open VS Code with superuser (sudo) permissions:
sudo code {path/to/file_or_directory} --user-data-dir
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).