Skip to main content

Visual Studio Code (VSCode) is an open-source and free source code editor developed by Microsoft for Windows, Linux and macOS.

# To open VS Code:
code

# To open the current directory in VS Code:
code .

# To open a file or directory in VS Code:
code <path/to/file_or_folder>

# To open a file or directory in the currently open VS Code window:
code --reuse-window <path/to/file_or_folder>

# To compare two files in VS Code:
code -d <file1> <file2>