Gerhard Bräunlich
January 2022
🐧 | Visual Studio Code on Linux |
🪟 | Visual Studio Code on Windows |
🍏 | Visual Studio Code on macOS |
Inofficial (FOSS) alternative: vscodium.
Note on privacy: Disable telemetry
Ctrl+P
/
⌘+P
Start char | Effect | |
---|---|---|
Open file | ||
> |
Command palette | |
@ |
Symbol lookup | |
# |
Symbol lookup | |
: |
Jump to line |
Via command palette: Ctrl+⇧+P
/ ⌘+⇧+P
Config path (share / backup config):
$HOME/.config/Code/User/settings.json # 🐧
%APPDATA%\Code\User\settings.json # 🪟
$HOME/Library/Application Support/Code/User/settings.json # 🍏
Per project config:
.vscode/settings.json
Quick Open (Ctrl+P
/ ⌘+P
) -> ext install
-> Enter.
Then search by keyword and browse.
Using the extension id: Quick Open (Ctrl+P
/
⌘+P
) -> ext install <extension-id>
-> Enter.
ext install gitlab.gitlab-workflow
Then follow their instructions
Possible issue: certificates
ext install ms-vscode.cpptools # ⚠️ proprietary
Requires: clang-format
🐧 | sudo apt-get install clang-format |
🍏 | brew install clang-format |
🪟 | instructions |
initial configuration,
run / debug build / change build type
autobuild on configuration changes,
autocompletion of CMake commands and vars,
Requires: Setup of SSH keys
Requires: docker
Contains:
https://gitlab.ethz.ch/sis/courses/vscode-cpp/exercises/cpp-gitlab-workflow
Setup euler for ssh-remote scicomp.ethz.ch/wiki/VSCode
Settings > Search “telementry” > Telemetry: Enable Telemetry
Also see: code.visualstudio.com/docs/getstarted/telemetry
If you get
request to https://gitlab.ethz.ch/api/graphql failed, reason:
certificate has expired
Set
in the config.
C++ tools: Grab a release here and use
Remote ssh: Grab a release from here
Remote container: Grab a release from here
VS Code Marketplace: https://marketplace.visualstudio.com
VS Codium repository: https://open-vsx.org
Slides:
Mik Rybinski and Manuel Weberndorfer for careful reviews and suggestions.