Zum Inhalt

VS Code Shortcuts

generieren

Umfassendes Visual Studio Code Shortcuts und Workflows für eine verbesserte Produktivität auf allen Plattformen.

Allgemeine Shortcuts

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Ctrl+Shift+P | Cmd+Shift+P | Show Command Palette | | | | Ctrl+P | Cmd+P | Quick Open (Go to File) | | | | Ctrl+Shift+N | Cmd+Shift+N | New Window | | | | Ctrl+Shift+W | Cmd+Shift+W | Close Window | | | | Ctrl+N | Cmd+N | New File | | | | Ctrl+O | Cmd+O | Open File | | | | Ctrl+S | Cmd+S | Save | | | | Ctrl+Shift+S | Cmd+Shift+S | Save As | | | | Ctrl+K S | Cmd+K S | Save All | | | | Ctrl+W | Cmd+W | Close File | | | | Ctrl+K Ctrl+W | Cmd+K Cmd+W | Close All | | | | Ctrl+Z | Cmd+Z | Undo | | | | Ctrl+Y | Cmd+Shift+Z | Redo | |

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Ctrl+G | Cmd+G | Go to Line | | | | Ctrl+Shift+O | Cmd+Shift+O | Go to Symbol | | | | Ctrl+T | Cmd+T | Show All Symbols | | | | F12 | F12 | Go to Definition | | | | Alt+F12 | Option+F12 | Peek Definition | | | | Shift+F12 | Shift+F12 | Show References | | | | Ctrl+K F12 | Cmd+K F12 | Open Definition to Side | | | | Ctrl+Alt+- | Ctrl+Cmd+- | Go Back | | | | Ctrl+Shift+- | Ctrl+Shift+Cmd+- | Go Forward | | | | Ctrl+M | Cmd+M | Toggle Tab Moves Focus | |

Bearbeitung

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Ctrl+X | Cmd+X | Cut Line (empty selection) | | | | Ctrl+C | Cmd+C | Copy Line (empty selection) | | | | Alt+↑/↓ | Option+↑/↓ | Move Line Up/Down | | | | Shift+Alt+↓/↑ | Shift+Option+↓/↑ | Copy Line Up/Down | | | | Ctrl+Shift+K | Cmd+Shift+K | Delete Line | | | | Ctrl+Enter | Cmd+Enter | Insert Line Below | | | | Ctrl+Shift+Enter | Cmd+Shift+Enter | Insert Line Above | | | | Ctrl+Shift+\ | Cmd+Shift+\ | Jump to Matching Bracket | | | | Ctrl+] | Cmd+] | Indent Line | | | | Ctrl+[ | Cmd+[ | Outdent Line | | | | Home/End | Home/End | Go to Beginning/End of Line | | | | Ctrl+Home | Cmd+↑ | Go to Beginning of File | | | | Ctrl+End | Cmd+↓ | Go to End of File | |

Multi-Cursor und Auswahl

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Alt+Click | Option+Click | Insert Cursor | | | | Ctrl+Alt+↑/↓ | Cmd+Option+↑/↓ | Insert Cursor Above/Below | | | | Ctrl+U | Cmd+U | Undo Last Cursor Operation | | | | Shift+Alt+I | Shift+Option+I | Insert Cursor at End of Each Line Selected | | | | Ctrl+L | Cmd+L | Select Current Line | | | | Ctrl+Shift+L | Cmd+Shift+L | Select All Occurrences of Current Selection | | | | Ctrl+F2 | Cmd+F2 | Select All Occurrences of Current Word | | | | Shift+Alt+→ | Shift+Option+→ | Expand Selection | | | | Shift+Alt+← | Shift+Option+← | Shrink Selection | | | | Shift+Alt+(drag mouse) | Shift+Option+(drag mouse) | Column (box) Selection | |

Suchen und Ersetzen

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Ctrl+F | Cmd+F | Find | | | | Ctrl+H | Cmd+Option+F | Replace | | | | F3 | Cmd+G | Find Next | | | | Shift+F3 | Cmd+Shift+G | Find Previous | | | | Alt+Enter | Option+Enter | Select All Occurrences of Find Match | | | | Ctrl+D | Cmd+D | Add Selection to Next Find Match | | | | Ctrl+K Ctrl+D | Cmd+K Cmd+D | Move Last Selection to Next Find Match | | | | Alt+C/R/W | Option+C/R/W | Toggle Case-Sensitive/Regex/Whole Word | |

Rich Languages Editing

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Ctrl+Space | Cmd+Space | Trigger Suggestion | | | | Ctrl+Shift+Space | Cmd+Shift+Space | Trigger Parameter Hints | | | | Shift+Alt+F | Shift+Option+F | Format Document | | | | Ctrl+K Ctrl+F | Cmd+K Cmd+F | Format Selection | | | | F12 | F12 | Go to Definition | | | | Alt+F12 | Option+F12 | Peek Definition | | | | Ctrl+K F12 | Cmd+K F12 | Open Definition to the Side | | | | Ctrl+. | Cmd+. | Quick Fix | | | | Shift+F12 | Shift+F12 | Show References | | | | F2 | F2 | Rename Symbol | | | | Ctrl+K Ctrl+X | Cmd+K Cmd+X | Trim Trailing Whitespace | | | | Ctrl+K M | Cmd+K M | Change File Language | |

Dateiverwaltung

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Ctrl+Tab | Cmd+Tab | Open Next | | | | Ctrl+Shift+Tab | Cmd+Shift+Tab | Open Previous | | | | Ctrl+K P | Cmd+K P | Copy Path of Active File | | | | Ctrl+K R | Cmd+K R | Reveal Active File in Explorer | | | | Ctrl+K O | Cmd+K O | Show Active File in New Window | |

Anzeige

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | F11 | Cmd+Ctrl+F | Toggle Full Screen | | | | Shift+Alt+0 | Shift+Option+0 | Toggle Editor Layout (horizontal/vertical) | | | | Ctrl+= | Cmd+= | Zoom In | | | | Ctrl+- | Cmd+- | Zoom Out | | | | Ctrl+0 | Cmd+0 | Reset Zoom | | | | Ctrl+B | Cmd+B | Toggle Sidebar Visibility | | | | Ctrl+Shift+E | Cmd+Shift+E | Show Explorer / Toggle Focus | | | | Ctrl+Shift+F | Cmd+Shift+F | Show Search | | | | Ctrl+Shift+G | Cmd+Shift+G | Show Source Control | | | | Ctrl+Shift+D | Cmd+Shift+D | Show Debug | | | | Ctrl+Shift+X | Cmd+Shift+X | Show Extensions | | | | Ctrl+Shift+H | Cmd+Shift+H | Replace in Files | | | | Ctrl+Shift+J | Cmd+Shift+J | Toggle Search Details | | | | Ctrl+Shift+U | Cmd+Shift+U | Show Output Panel | | | | Ctrl+Shift+V | Cmd+Shift+V | Open Markdown Preview | | | | Ctrl+K V | Cmd+K V | Open Markdown Preview to the Side | |

Debug

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | F9 | F9 | Toggle Breakpoint | | | | F5 | F5 | Start/Continue | | | | Shift+F5 | Shift+F5 | Stop | | | | F11 | F11 | Step Into | | | | Shift+F11 | Shift+F11 | Step Out | | | | F10 | F10 | Step Over | | | | Ctrl+K Ctrl+I | Cmd+K Cmd+I | Show Hover | |

Integrierter Terminal

| | Windows/Linux | macOS | Description | | | --- | --- | --- | | | Ctrl+`` |Cmd+| Show Integrated Terminal | | | | `Ctrl+Shift+ | Cmd+Shift+`` | Create New Terminal | | | |Ctrl+C|Cmd+C| Copy Selection | | | |Ctrl+V|Cmd+V| Paste into Active Terminal | | | |Ctrl+↑/↓|Cmd+↑/↓| Scroll Up/Down | | | |Shift+PgUp/PgDn|Shift+PgUp/PgDn| Scroll Page Up/Down | | | |Ctrl+Home/End|Cmd+Home/End` | Scroll to Top/Bottom | |

Gemeinsame Workflows

Projektaufbau

```bash

Open project in VS Code

code . code /path/to/project

Open specific file

code filename.js

Open with specific settings

code --user-data-dir /path/to/settings ```_

Erweiterungsmanagement

```bash

Install extension

code --install-extension ms-python.python

List installed extensions

code --list-extensions

Disable all extensions

code --disable-extensions ```_

Workspace Konfiguration

json // .vscode/settings.json \\\\{ "editor.fontSize": 14, "editor.tabSize": 2, "files.autoSave": "afterDelay", "terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe" \\\\}_

Best Practices

Produktivität Tipps

  • Verwenden Sie die Befehlspalette (Ctrl+Shift+P) für schnellen Zugriff auf alle Befehle
  • Master Multi-Cursor-Bearbeitung für Bulk-Änderungen
  • Verwenden Sie IntelliSense für schnellere Codierung
  • Erstellen Sie individuelle Schlüsselanbindungen für häufig verwendete Aktionen
  • Verwenden Sie Workspace-Einstellungen für projektspezifische Konfigurationen

Code Organisation

  • Dateiexplorer (Ctrl+Shift+E_) für schnelle Navigation verwenden
  • Organisieren von Dateien mit der richtigen Ordnerstruktur
  • Suche verwenden (Ctrl+Shift+F) für das Finden von Dateien
  • Leverage Git Integration für die Versionskontrolle
  • Erweiterungen für sprachspezifische Features verwenden

Debugging Workflow

  • Stellen Sie Pausen strategisch fest
  • Verwenden Sie Debug-Konsole für die Laufzeitauswertung
  • Start.json für benutzerdefinierte Debug-Szenarien konfigurieren
  • Conditional Breakpoints für komplexe Debugging verwenden
  • Verwenden Sie integriertes Terminal für Befehlszeilen-Debugging

Leistungsoptimierung

  • Ungenutzte Erweiterungen deaktivieren
  • Workspace-spezifische Einstellungen verwenden
  • Dateiausschlüsse für große Projekte konfigurieren
  • Verwenden Sie Remote-Entwicklung für ressourcenintensive Projekte
  • Optimieren Sie Einstellungen für Ihren spezifischen Workflow