May 15, 2025 - 16:37
Visual Studio Code Keyboard Shortcuts Image
Web Geliştirme

Visual Studio Code Keyboard Shortcuts

Comments

Visual Studio Code (VS Code) is a popular code editor that enables fast and efficient coding. By actively using the keyboard, you can boost your coding speed and make operations more practical.

In this article, we’ll explore the most useful keyboard shortcuts in VS Code by organizing them into categories.


1. Basic Shortcuts

Action Windows/Linux macOS
New File Ctrl + N Cmd + N
Open File Ctrl + O Cmd + O
Save File Ctrl + S Cmd + S
Save All Files Ctrl + K, S Cmd + Option + S
Close File Ctrl + W Cmd + W
Quit VS Code Ctrl + Q Cmd + Q

2. Editing and Coding Shortcuts

Action Windows/Linux macOS
Delete Line Ctrl + Shift + K Cmd + Shift + K
Move Line Up Alt + ↑ Option + ↑
Move Line Down Alt + ↓ Option + ↓
Copy Line Shift + Alt + ↓ Shift + Option + ↓
Toggle Line Comment Ctrl + / Cmd + /
Select Multiple Lines Ctrl + Alt + ↑/↓ Cmd + Option + ↑/↓

3. Selection and Navigation Shortcuts

Action Windows/Linux macOS
Select All Ctrl + A Cmd + A
Select Word Ctrl + D Cmd + D
Select All Occurrences of Word Ctrl + Shift + L Cmd + Shift + L
Previous File Ctrl + Tab Cmd + Tab
Navigate Open Files Ctrl + Shift + Tab Cmd + Shift + Tab

4. Search and Replace Shortcuts

Action Windows/Linux macOS
Search Within File Ctrl + F Cmd + F
Search in Project Ctrl + Shift + F Cmd + Shift + F
Find and Replace Ctrl + H Cmd + Option + F
Find and Replace (Entire Project) Ctrl + Shift + H Cmd + Shift + H

5. Terminal and Git Operations

Action Windows/Linux macOS
Toggle Terminal Ctrl + ~ Cmd + ~
New Terminal Ctrl + Shift + ` Cmd + Shift + `
Git Commit Ctrl + Enter Cmd + Enter
Git Push Ctrl + Shift + P → 'Git: Push' Cmd + Shift + P → 'Git: Push'

6. Debug and Run Shortcuts

Action Windows/Linux macOS
Run Code F5 F5
Start Debug Mode Ctrl + Shift + D Cmd + Shift + D
Add Breakpoint F9 F9
Stop Debugging Shift + F5 Shift + F5

7. Summary of the Most Useful Shortcuts

Here are the most frequently used shortcuts to boost your coding efficiency:
  • File operations: Ctrl + N (New file), Ctrl + S (Save), Ctrl + W (Close)
  • Editing: Ctrl + / (Toggle comment), Alt + ↑/↓ (Move line), Ctrl + Shift + K (Delete line)
  • Search: Ctrl + F (Find), Ctrl + Shift + F (Find in project)
  • Terminal: Ctrl + ~ (Toggle terminal), Ctrl + Shift + ` (New terminal)

Related Articles

Comments ()

No comments yet. Be the first to comment!

Leave a Comment