VS Code

2022
vscode
programming

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:

  • Effective Field Theory (EFT) in High Energy Physics
  • CMS Full Detector Simulations based on mccm chain
  • Physics Words and Concepts
  • Macbook Keynote Tricks
  • Scalar search in CMS
  • HH Analysis in CMS
  • dasgoclient
  • fc command
  • CMS Software (CMSSW)
  • CMS HEM Issue