Atajos de código VS
"Clase de la hoja"
########################################################################################################################################################################################################################################################## Copiar todos los comandos
■/div titulada
Full Visual Studio Códigos atajos y flujos de trabajo para aumentar la productividad en todas las plataformas.
Atajos generales
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 |
Navegación
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 |
Edición
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 y selección
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 |
Búsqueda y sustitución
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 |
Edición de idiomas ricos
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 |
Administración de archivos
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 |
Visualización
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 |
Terminal Integrado
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 |
Corrientes de trabajo comunes
Configuración de proyectos
# 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
Extension Management
# Install extension
code --install-extension ms-python.python
# List installed extensions
code --list-extensions
# Disable all extensions
code --disable-extensions
Configuración del espacio de trabajo
// .vscode/settings.json
\\\\{
"editor.fontSize": 14,
"editor.tabSize": 2,
"files.autoSave": "afterDelay",
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"
\\\\}
Buenas prácticas
Consejos de productividad
- Use Command Palette (
Ctrl+Shift+P
_) para acceder rápidamente a todos los comandos
- Master multi-cursor de edición para cambios a granel
- Utiliza IntelliSense para una codificación más rápida
- Configurar claves personalizadas para acciones usadas con frecuencia
- Utilice la configuración del espacio de trabajo para configuraciones específicas del proyecto
Code Organization
- Use el explorador de archivos (CODE_BLOCK_206__) para una navegación rápida
- Organizar archivos con la estructura de carpeta adecuada
- Utilice la búsqueda (CODE_BLOCK_207__) para encontrar archivos
- Integración Leverage Git para el control de versiones
- Extensión de uso para características específicas del idioma
Debugging Workflow
- Establecer puntos de ruptura estratégicamente
- Use consola depuradora para la evaluación de tiempo de ejecución
- Configurar lanzamiento.json para escenarios de depuración personalizados
- Utilizar puntos de ruptura condicionales para depurar complejos
- Utilice terminal integrado para depuración de línea de comandos
Optimización del rendimiento
- Extensiones no utilizadas
- Utilice ajustes específicos del espacio de trabajo
- Configurar exclusiones de archivos para grandes proyectos
- Utilización del desarrollo remoto para proyectos intensivos en recursos
- Optimize settings for your specific workflow