VS Code

Table of Contents


Introduction

Why I switched from Sublime to VSCode?

Some important commands

Editor

  1. Select the word where the cursor is: CMD + D
  2. Select all occurrences of find match: CMD + SHIFT + L
  3. Select all text within the brackets: CTRL + SHIFT + RIGHT ARROW

Others

  1. Quick Open: CMD + P 1.

Some General Issues & Its Fix

Failure to connect to VS Code Server

Fix: Remove the /home/<USER>/.vscode-server folder and retry. Then it should work.

Reference: https://github.com/microsoft/vscode-remote-release/issues/3575#issuecomment-690826257

failed to connect to the remote extension host server (error websocket close with status code 1006)

Fix:

  • In the .ssh/config file on the REMOTE host add following lines:

    AllowAgentForwarding yes
    AllowTcpForwarding yes
    

Reference: https://github.com/microsoft/vscode-remote-release/issues/5352#issuecomment-913228691

Useful script:




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Vi-Editor
  • GitLab workflow for CMS-AN
  • Condor Jobs
  • Mac Settings
  • Git CheatSheet
  • sed command
  • Sublime Features
  • awk command
  • find command
  • Grep command
  • fc command