VSCode#

  • Author: Fu Yin

  • Update: July 28, 2022

  • Reading: 10 min


Install#

Download VSCode (Visual Studio Code) and install directly.

Sign-in and Sync#

Recommend to use Microsoft account to sign in, and Github account is not worked now (until July 28, 2022).

../_images/VSCode-2.jpg

Fig. 5 My Microsoft account to sign in VSCode#

Refer to Microsoft sync docs before use sync function.

Theme#

  • My color theme: Monokai

  • My file icon theme: VSCode icons

  • My editor font family theme: Source Code Pro

  • My terminal font family theme: Source Code Pro for Powerline

Make sure you have installed those font in your computer, if not, you can download from https://github.com/powerline/fonts

Plugin#

Universal shortcut key: Command + Shift + P.

  • It’s a command line-like interface, which will be automatically open with an > symbol.

  • We can input various plugins command to check their options and settings. If you delete > symbol, you can search file’s location.

../_images/VSCode-1.jpg

Fig. 6 Command + Shift + P#

My plugins list

Name

Purpose

Remote-SSH

Open any folder on a remote machine using SSH and take advantage of VS Code’s full feature set

MyST-Markdown

The official Markdown syntax extension for MyST (Markedly Structured Text)

Python

IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), Jupyter Notebooks, code formatting, refactoring, unit tests…

Pylance

A performant, feature-rich language server for Python in VS Code

Jupyter

Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more

Live Preview

Hosts a local server in your workspace for you to preview your webpages on

reStructuredText

reStructuredText language support (RST/ReST linter, preview, IntelliSense and more)

vscode-pdf

Display pdf file in VSCode

vscode-icons

Icons for Visual Studio Code

CMake Tools

Extended CMake support in Visual Studio Code

Julia

Julia Language Support

C/C++

C/C++ IntelliSense, debugging, and code browsing

C/C++ Themes

UI Themes for C/C++ extension

C/C++ Extension Pack

Popular extensions for C++ development in Visual Studio Code

LaTeX Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more

Makefile Tools

Provide makefile support in VS Code: C/C++ IntelliSense, build, debug/run

Remote-SSH#

After configuring the SSH key, use Remote-SSH plugin.

Tip

If the Shell used by the remote is Bash, and the local machine is Zsh, you may experience failure to boot VSCode terminal problem. In this case, you need to modify the configuration file of VSCode to restart the terminal correctly.

Open the command panel, input the Remote-SSH: Settings, search terminal.integrated.shell.linux, and change /bin/zsh to /bin/bash. Please refer to microsoft/vscode-remote-release issues #38