Skip to content

vscode cheatsheet

install

sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
rm -f packages.microsoft.gpg
sudo apt install apt-transport-https
sudo apt update
sudo apt install code

settings.json template

press F1 or Ctrl+Shift+P, , type > if necessary into searchbar and search for Preferences: Open User Settings (JSON)

this template will disable telemetry and stops workers on remote host doing indexing. especially indexing did some trouble on some remotehost and also on clientside resulting in 100% cpu usage. add any folder to work at simply by adding it to files.watcherExlude

{
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/*/**": true,
        "**/docker/**": true
    },
    "search.followSymlinks": false,
    "telemetry.enableTelemetry": false,
    "telemetry.enableCrashReporter": false,
    "security.workspace.trust.untrustedFiles": "open",
    "redhat.telemetry.enabled": false,
    "editor.accessibilitySupport": "off",
    "liveServer.settings.NoBrowser": true,
    "workbench.startupEditor": "none",
    "git.autoRepositoryDetection": false
}

using random filename with sshkey

press F1 or Ctrl+Shift+P, , type > if necessary into searchbar and search for Remote-SSH: Open Remote SSH Configuration File

put IdentityFile ~/.ssh/<NAMEOFKEY> into ~/.ssh/config file

Host <DESCRIPTION>
  HostName <HOST or IP>
  User <USER>
  IdentityFile ~/.ssh/<NAMEOFKEY>
Note

(not tested)to specify which keys should be checked in vscode add IdentitiesOnly yes

using sshkey defaultname

Host <DESCRIPTION>
  HostName <HOST or IP>
  User <USER>ยจ