| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
| visual_studio_code [2022-11-23 11:47:37] – david | visual_studio_code [2025-10-12 20:45:32] (aktuell) – [Installation] david |
|---|
| ====== Visual Studio Code ====== | ====== Visual Studio Code ====== |
| |
| **[[https://code.visualstudio.com/|Visual Studio Code]]** ist open-source und für Windows, Linux, macOS und im [[https://vscode.dev/|Web]] verfügbar! | **[[https://code.visualstudio.com/|Visual Studio Code]]** (VS Code) ist open-source und für Windows, Linux, macOS und im [[https://vscode.dev/|Web]] verfügbar! |
| |
| Neben [[https://vscode.dev/]] gibt es noch [[https://github.dev/]] (in einem beliebigen GitHub repo die Punkt-Taste [**.**] drücken oder **github.com** durch **github.dev** ersetzen) | Neben [[https://vscode.dev/]] gibt es noch [[https://github.dev/]] (in einem beliebigen GitHub repo die Punkt-Taste [**.**] drücken oder **github.com** durch **github.dev** ersetzen) |
| |
| <code bash> | <code bash> |
| sudo apt-get install wget gpg | sudo apt-get install curl 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 | |
| sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
| rm -f packages.microsoft.gpg | |
| |
| sudo apt install apt-transport-https | curl -O packages.microsoft.com.asc https://packages.microsoft.com/keys/microsoft-rolling.asc |
| sudo apt update | sudo install -D -o root -g root -m 644 packages.microsoft.com.asc /etc/apt/keyrings |
| sudo apt install code | rm -f packages.microsoft.com.asc |
| | |
| | curl -O legacy.packages.microsoft.com.asc https://packages.microsoft.com/keys/microsoft.asc |
| | sudo install -D -o root -g root -m 644 legacy.packages.microsoft.com.asc /etc/apt/keyrings |
| | rm -f legacy.packages.microsoft.com.asc |
| | |
| | sudo apt -U install apt-transport-https |
| | </code> |
| | |
| | <code ini /etc/apt/sources.list.d/packages.microsoft.com.sources> |
| | Enabled: yes |
| | Types: deb |
| | URIs: https://packages.microsoft.com/debian/12/prod |
| | Suites: bookworm |
| | Components: main |
| | Signed-By: /etc/apt/keyrings/legacy.packages.microsoft.com.asc |
| | |
| | Enabled: yes |
| | Types: deb |
| | URIs: https://packages.microsoft.com/debian/13/prod |
| | Suites: trixie |
| | Components: main |
| | Signed-By: /etc/apt/keyrings/packages.microsoft.com.asc |
| | |
| | # sudo debconf-set-selections <<< "code code/add-microsoft-repo boolean false" |
| | Enabled: yes |
| | Types: deb |
| | URIs: https://packages.microsoft.com/repos/code |
| | Suites: stable |
| | Components: main |
| | Signed-By: /etc/apt/keyrings/legacy.packages.microsoft.com.asc |
| | </code> |
| | |
| | <code bash> |
| | sudo debconf-set-selections <<< "code code/add-microsoft-repo boolean false" |
| | sudo apt -U install code |
| </code> | </code> |
| |
| ===== Konfigurationsdatei ===== | ===== Konfigurationsdatei ===== |
| |
| | Version: 1.73.1 |
| Gist: [[https://gist.github.com/masterflitzer/3d954880ae7599e28da81c5acef0ad8d]] | Gist: [[https://gist.github.com/masterflitzer/3d954880ae7599e28da81c5acef0ad8d]] |
| |
| <code yaml settings.json> | <code yaml settings.json> |
| { | { |
| "[bat]": { | "[bat]": { |
| "files.eol": "\r\n" | "files.eol": "\r\n" |
| }, | }, |
| "[css]": { | "[css]": { |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | "editor.defaultFormatter": "esbenp.prettier-vscode" |
| }, | }, |
| "[dockercompose]": { | "[dockercompose]": { |
| "editor.defaultFormatter": "ms-azuretools.vscode-docker" | "editor.defaultFormatter": "ms-azuretools.vscode-docker" |
| }, | }, |
| "[go]": { | "[go]": { |
| "editor.insertSpaces": false | "editor.insertSpaces": false |
| }, | }, |
| "[html]": { | "[html]": { |
| "editor.defaultFormatter": "vscode.html-language-features" | "editor.defaultFormatter": "vscode.html-language-features" |
| }, | }, |
| "[javascript]": { | "[javascript]": { |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | "editor.defaultFormatter": "esbenp.prettier-vscode" |
| }, | }, |
| "[json]": { | "[json]": { |
| "editor.defaultFormatter": "vscode.json-language-features", | "editor.defaultFormatter": "vscode.json-language-features", |
| "editor.tabSize": 2 | "editor.tabSize": 2 |
| }, | }, |
| "[jsonc]": { | "[jsonc]": { |
| "editor.defaultFormatter": "vscode.json-language-features", | "editor.defaultFormatter": "vscode.json-language-features", |
| "editor.tabSize": 2 | "editor.tabSize": 2 |
| }, | }, |
| "[markdown]": { | "[markdown]": { |
| "editor.defaultFormatter": "DavidAnson.vscode-markdownlint", | "editor.defaultFormatter": "DavidAnson.vscode-markdownlint", |
| "editor.tabSize": 2, | "editor.tabSize": 2, |
| "files.trimTrailingWhitespace": false | "files.trimTrailingWhitespace": false |
| }, | }, |
| "[powershell]": { | "[powershell]": { |
| "editor.defaultFormatter": "ms-vscode.powershell", | "editor.defaultFormatter": "ms-vscode.powershell", |
| "files.eol": "\r\n" | "files.eol": "\r\n" |
| }, | }, |
| "[python]": { | "[python]": { |
| "editor.defaultFormatter": "ms-python.python", | "editor.defaultFormatter": "ms-python.python", |
| "editor.formatOnSaveMode": "modificationsIfAvailable" | "editor.formatOnSaveMode": "modificationsIfAvailable" |
| }, | }, |
| "[tsv]": { | "[tsv]": { |
| "editor.insertSpaces": false | "editor.insertSpaces": false |
| }, | }, |
| "[typescript]": { | "[typescript]": { |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | "editor.defaultFormatter": "esbenp.prettier-vscode" |
| }, | }, |
| "[xml]": { | "[xml]": { |
| "editor.defaultFormatter": "redhat.vscode-xml", | "editor.defaultFormatter": "redhat.vscode-xml", |
| "editor.tabSize": 2 | "editor.tabSize": 2 |
| }, | }, |
| "[yaml]": { | "[yaml]": { |
| "editor.defaultFormatter": "redhat.vscode-yaml", | "editor.defaultFormatter": "redhat.vscode-yaml", |
| "editor.tabSize": 2 | "editor.tabSize": 2 |
| }, | }, |
| "css.styleSheets": [ | "css.styleSheets": [ |
| "https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css", | "https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css", |
| "https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" | "https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" |
| ], | ], |
| "debug.onTaskErrors": "showErrors", | "debug.onTaskErrors": "showErrors", |
| "diffEditor.ignoreTrimWhitespace": false, | "diffEditor.ignoreTrimWhitespace": false, |
| "editor.autoClosingBrackets": "always", | "editor.autoClosingBrackets": "always", |
| "editor.autoClosingQuotes": "always", | "editor.autoClosingQuotes": "always", |
| "editor.bracketPairColorization.enabled": true, | "editor.bracketPairColorization.enabled": true, |
| "editor.codeLens": true, | "editor.codeLens": true, |
| "editor.cursorSmoothCaretAnimation": true, | "editor.cursorSmoothCaretAnimation": true, |
| "editor.defaultFormatter": null, | "editor.defaultFormatter": null, |
| "editor.detectIndentation": true, | "editor.detectIndentation": true, |
| "editor.fontFamily": "Fira Code", | "editor.fontFamily": "Fira Code", |
| "editor.fontLigatures": "'calt', 'zero', 'ss04', 'ss07', 'ss09', 'ss10', 'cv06', 'cv25', 'cv26', 'cv27', 'cv28', 'cv29', 'cv30', 'cv32'", | "editor.fontLigatures": "'calt', 'zero', 'ss04', 'ss07', 'ss09', 'ss10', 'cv06', 'cv25', 'cv26', 'cv27', 'cv28', 'cv29', 'cv30', 'cv32'", |
| "editor.formatOnPaste": true, | "editor.formatOnPaste": true, |
| "editor.formatOnSave": true, | "editor.formatOnSave": true, |
| "editor.formatOnSaveMode": "file", | "editor.formatOnSaveMode": "file", |
| "editor.formatOnType": true, | "editor.formatOnType": true, |
| "editor.guides.bracketPairs": true, | "editor.guides.bracketPairs": true, |
| "editor.guides.bracketPairsHorizontal": true, | "editor.guides.bracketPairsHorizontal": true, |
| "editor.guides.highlightActiveBracketPair": true, | "editor.guides.highlightActiveBracketPair": true, |
| "editor.guides.highlightActiveIndentation": true, | "editor.guides.highlightActiveIndentation": true, |
| "editor.guides.indentation": true, | "editor.guides.indentation": true, |
| "editor.inlineSuggest.enabled": true, | "editor.inlineSuggest.enabled": true, |
| "editor.insertSpaces": true, | "editor.insertSpaces": true, |
| "editor.minimap.renderCharacters": false, | "editor.minimap.renderCharacters": false, |
| "editor.renderControlCharacters": true, | "editor.renderControlCharacters": true, |
| "editor.renderWhitespace": "boundary", | "editor.renderWhitespace": "boundary", |
| "editor.smoothScrolling": true, | "editor.smoothScrolling": true, |
| "editor.suggestSelection": "recentlyUsedByPrefix", | "editor.suggestSelection": "recentlyUsedByPrefix", |
| "editor.tabSize": 4, | "editor.tabSize": 4, |
| "editor.unicodeHighlight.allowedCharacters": { | "editor.unicodeHighlight.allowedCharacters": { |
| "ß": true, | "ß": true, |
| "ä": true, | "ä": true, |
| "ö": true, | "ö": true, |
| "ü": true | "ü": true |
| }, | }, |
| "editor.unicodeHighlight.allowedLocales": { | "editor.unicodeHighlight.allowedLocales": { |
| "_os": true, | "_os": true, |
| "_vscode": true | "_vscode": true |
| }, | }, |
| "editor.unicodeHighlight.ambiguousCharacters": true, | "editor.unicodeHighlight.ambiguousCharacters": true, |
| "editor.unicodeHighlight.includeComments": true, | "editor.unicodeHighlight.includeComments": true, |
| "editor.unicodeHighlight.includeStrings": true, | "editor.unicodeHighlight.includeStrings": true, |
| "editor.unicodeHighlight.invisibleCharacters": true, | "editor.unicodeHighlight.invisibleCharacters": true, |
| "editor.unicodeHighlight.nonBasicASCII": true, | "editor.unicodeHighlight.nonBasicASCII": true, |
| "editor.wordWrap": "on", | "editor.wordWrap": "on", |
| "editor.wrappingIndent": "indent", | "editor.wrappingIndent": "indent", |
| "explorer.confirmDelete": false, | "explorer.confirmDelete": false, |
| "explorer.confirmDragAndDrop": false, | "explorer.confirmDragAndDrop": false, |
| "files.associations": { | "files.associations": { |
| "*.ascx": "html", | "*.ascx": "html", |
| "*.ashx": "html", | "*.ashx": "html", |
| "*.asmx": "html", | "*.asmx": "html", |
| "*.aspx": "html", | "*.aspx": "html", |
| "*.master": "html" | "*.master": "html" |
| }, | }, |
| "files.autoGuessEncoding": true, | "files.autoGuessEncoding": true, |
| "files.autoSave": "onFocusChange", | "files.autoSave": "onFocusChange", |
| "files.defaultLanguage": "${activeEditorLanguage}", | "files.defaultLanguage": "${activeEditorLanguage}", |
| "files.encoding": "utf8", | "files.encoding": "utf8", |
| "files.eol": "\n", | "files.eol": "\n", |
| "files.hotExit": "onExit", | "files.hotExit": "onExit", |
| "files.insertFinalNewline": true, | "files.insertFinalNewline": true, |
| "files.trimFinalNewlines": true, | "files.trimFinalNewlines": true, |
| "git.autofetch": "all", | "git.autofetch": "all", |
| "git.confirmSync": false, | "git.confirmSync": false, |
| "git.enableCommitSigning": true, | "git.enableCommitSigning": true, |
| "git.enableSmartCommit": true, | "git.enableSmartCommit": true, |
| "github.gitProtocol": "ssh", | "github.gitProtocol": "ssh", |
| "gitlens.defaultDateFormat": "YYYY-MM-DD HH:mm", | "gitlens.defaultDateFormat": "YYYY-MM-DD HH:mm", |
| "gitlens.defaultDateLocale": null, | "gitlens.defaultDateLocale": null, |
| "gitlens.defaultDateShortFormat": "YYYY-MM-DD", | "gitlens.defaultDateShortFormat": "YYYY-MM-DD", |
| "gitlens.defaultTimeFormat": "HH:mm", | "gitlens.defaultTimeFormat": "HH:mm", |
| "html.format.extraLiners": "", | "gitlens.rebaseEditor.ordering": "asc", |
| "html.format.indentInnerHtml": false, | "html.format.extraLiners": "", |
| "html.format.wrapAttributes": "aligned-multiple", | "html.format.indentInnerHtml": false, |
| "html.validate.scripts": true, | "html.format.wrapAttributes": "aligned-multiple", |
| "html.validate.styles": true, | "html.validate.scripts": true, |
| "javascript.updateImportsOnFileMove.enabled": "always", | "html.validate.styles": true, |
| "livePreview.notifyOnOpenLooseFile": false, | "javascript.updateImportsOnFileMove.enabled": "always", |
| "notebook.lineNumbers": "on", | "livePreview.notifyOnOpenLooseFile": false, |
| "omnisharp.useModernNet": true, | "notebook.lineNumbers": "on", |
| "powershell.codeFormatting.preset": "OTBS", | "omnisharp.useModernNet": true, |
| "powershell.enableProfileLoading": true, | "powershell.codeFormatting.preset": "OTBS", |
| "powershell.pester.useLegacyCodeLens": false, | "powershell.enableProfileLoading": true, |
| "prettier.bracketSameLine": true, | "powershell.pester.useLegacyCodeLens": false, |
| "prettier.htmlWhitespaceSensitivity": "ignore", | "prettier.bracketSameLine": true, |
| "prettier.tabWidth": 4, | "prettier.htmlWhitespaceSensitivity": "ignore", |
| "python.formatting.provider": "black", | "prettier.tabWidth": 4, |
| "redhat.telemetry.enabled": false, | "python.formatting.provider": "black", |
| "remote.SSH.remotePlatform": {}, | "redhat.telemetry.enabled": false, |
| "remoteHub.gitProtocol": "ssh", | "remote.SSH.remotePlatform": {}, |
| "security.workspace.trust.enabled": true, | "remoteHub.gitProtocol": "ssh", |
| "sortJSON.contextMenu": { | "security.workspace.trust.enabled": true, |
| "sortJSON": true, | "sortJSON.contextMenu": { |
| "sortJSONAlphaNum": false, | "sortJSON": true, |
| "sortJSONAlphaNumReverse": false, | "sortJSONAlphaNum": false, |
| "sortJSONKeyLength": false, | "sortJSONAlphaNumReverse": false, |
| "sortJSONKeyLengthReverse": false, | "sortJSONKeyLength": false, |
| "sortJSONReverse": false, | "sortJSONKeyLengthReverse": false, |
| "sortJSONType": false, | "sortJSONReverse": false, |
| "sortJSONTypeReverse": false, | "sortJSONType": false, |
| "sortJSONValues": false, | "sortJSONTypeReverse": false, |
| "sortJSONValuesReverse": false | "sortJSONValues": false, |
| }, | "sortJSONValuesReverse": false |
| "telemetry.telemetryLevel": "off", | }, |
| "terminal.explorerKind": "integrated", | "telemetry.telemetryLevel": "off", |
| "terminal.integrated.automationProfile.windows": null, | "terminal.explorerKind": "integrated", |
| "terminal.integrated.copyOnSelection": true, | "terminal.integrated.automationProfile.windows": null, |
| "terminal.integrated.cursorBlinking": true, | "terminal.integrated.copyOnSelection": true, |
| "terminal.integrated.cursorStyle": "block", | "terminal.integrated.cursorBlinking": true, |
| "terminal.integrated.defaultProfile.windows": "PowerShell", | "terminal.integrated.cursorStyle": "block", |
| "terminal.integrated.gpuAcceleration": "auto", | "terminal.integrated.defaultProfile.windows": "PowerShell", |
| "terminal.integrated.rightClickBehavior": "paste", | "terminal.integrated.gpuAcceleration": "auto", |
| "terminal.integrated.shellIntegration.enabled": true, | "terminal.integrated.rightClickBehavior": "paste", |
| "terminal.integrated.smoothScrolling": true, | "terminal.integrated.shellIntegration.enabled": true, |
| "typescript.updateImportsOnFileMove.enabled": "always", | "terminal.integrated.smoothScrolling": true, |
| "update.enableWindowsBackgroundUpdates": true, | "typescript.updateImportsOnFileMove.enabled": "always", |
| "update.mode": "default", | "update.enableWindowsBackgroundUpdates": true, |
| "vscode-edge-devtools.useHttps": true, | "update.mode": "default", |
| "vscode-edge-devtools.userDataDir": false, | "vscode-edge-devtools.useHttps": true, |
| "vscord.app.name": "Visual Studio Code", | "vscode-edge-devtools.userDataDir": false, |
| "vscord.behavoiur.prioritizeLanguagesOverExtensions": true, | "vscord.app.name": "Visual Studio Code", |
| "vscord.status.button.idle.enabled": true, | "vscord.behavoiur.prioritizeLanguagesOverExtensions": true, |
| "vscord.status.button.idle.label": "GitHub", | "vscord.status.buttons.button1.active.enabled": true, |
| "vscord.status.button.idle.url": "https://github.com/masterflitzer", | "vscord.status.buttons.button1.active.label": "GitHub", |
| "vscord.status.button.inactive.enabled": true, | "vscord.status.buttons.button1.active.url": "https://github.com/masterflitzer", |
| "vscord.status.button.inactive.label": "GitHub", | "vscord.status.buttons.button1.idle.enabled": true, |
| "vscord.status.button.inactive.url": "https://github.com/masterflitzer", | "vscord.status.buttons.button1.idle.label": "GitHub", |
| "vscord.status.idle.enabled": false, | "vscord.status.buttons.button1.idle.url": "https://github.com/masterflitzer", |
| "vscord.status.showElapsedTime": false, | "vscord.status.buttons.button1.inactive.enabled": true, |
| "window.commandCenter": true, | "vscord.status.buttons.button1.inactive.label": "GitHub", |
| "window.menuBarVisibility": "visible", | "vscord.status.buttons.button1.inactive.url": "https://github.com/masterflitzer", |
| "window.titleBarStyle": "custom", | "vscord.status.idle.enabled": false, |
| "workbench.colorTheme": "Default Dark+", | "vscord.status.showElapsedTime": false, |
| "workbench.editorAssociations": { | "window.commandCenter": true, |
| "*.pdf": "latex-workshop-pdf-hook" | "window.menuBarVisibility": "visible", |
| }, | "window.titleBarStyle": "custom", |
| "workbench.list.smoothScrolling": true, | "workbench.colorTheme": "Default Dark+", |
| "workbench.startupEditor": "none" | "workbench.editorAssociations": { |
| | "*.pdf": "latex-workshop-pdf-hook", |
| | "git-rebase-todo": "gitlens.rebase" |
| | }, |
| | "workbench.list.smoothScrolling": true, |
| | "workbench.startupEditor": "none" |
| } | } |
| |
| ===== Entwicklungsumgebung einrichten ===== | ===== Entwicklungsumgebung einrichten ===== |
| |
| [[vscode_c_cpp|C/C++ in Visual Studio Code]] | [[::C/C++ in Visual Studio Code]] |
| |
| |