Developer yang mahir VS Code bukan karena hafal semua shortcut, tapi karena mereka tahu shortcut yang paling sering dipakai. Fokus kuasai daftar ini dulu — sudah cukup untuk naikkan produktivitas 2-3x.
Shortcut di bawah menggunakan format Windows/Linux. Untuk Mac, ganti Ctrl → Cmd dan Alt → Option.
🎯 Yang Paling Penting (Kuasai Ini Dulu)
| Shortcut |
Fungsi |
Ctrl+Shift+P | Command Palette — akses semua fitur VS Code |
Ctrl+P | Quick Open — buka file dengan cepat |
Ctrl+` | Toggle terminal |
Ctrl+Z / Ctrl+Shift+Z | Undo / Redo |
Ctrl+S | Simpan file |
Ctrl+W | Tutup tab aktif |
🧭 Navigasi
| Shortcut |
Fungsi |
Ctrl+G | Langsung ke baris tertentu |
Ctrl+Home / Ctrl+End | Ke awal / akhir file |
Alt+← / Alt+→ | Navigasi history (back/forward) |
Ctrl+Tab | Pindah antar tab yang terbuka |
F12 | Go to Definition |
Alt+F12 | Peek Definition (tanpa berpindah file) |
Shift+F12 | Lihat semua referensi ke fungsi/variabel |
Ctrl+Shift+O | Jump ke simbol (fungsi/class) di file aktif |
✏️ Editing
| Shortcut |
Fungsi |
Alt+↑ / Alt+↓ | Pindah baris ke atas / bawah |
Shift+Alt+↑ / ↓ | Duplikasi baris ke atas / bawah |
Ctrl+Shift+K | Hapus baris aktif |
Ctrl+Enter | Baris baru di bawah (tanpa pindah cursor) |
Ctrl+Shift+Enter | Baris baru di atas |
Ctrl+/ | Toggle komentar baris |
Tab / Shift+Tab | Indent / unindent baris atau seleksi |
Ctrl+Shift+[ | Fold (lipat) blok kode |
Ctrl+Shift+] | Unfold blok kode |
🖱️ Multi-Cursor (Game Changer!)
| Shortcut |
Fungsi |
Alt+Click | Tambah cursor di posisi klik |
Ctrl+D | Pilih kata berikutnya yang sama |
Ctrl+Shift+L | Pilih semua kemunculan kata yang sama |
Ctrl+Alt+↑ / ↓ | Tambah cursor di atas / bawah |
F2 | Rename semua kemunculan simbol |
🔍 Search & Replace
| Shortcut |
Fungsi |
Ctrl+F | Cari di file aktif |
Ctrl+H | Cari dan replace di file aktif |
Ctrl+Shift+F | Cari di semua file (global search) |
Ctrl+Shift+H | Replace di semua file |
💻 Terminal
| Shortcut |
Fungsi |
Ctrl+` | Toggle terminal panel |
Ctrl+Shift+` | Buat terminal baru |
Ctrl+Shift+5 | Split terminal |
Alt+1, Alt+2, ... | Pindah ke terminal ke-1, 2, dst. |
💡 Tips Belajar Shortcut
Jangan coba hafal semua sekaligus. Pilih 5 shortcut saja yang belum kamu pakai, praktikkan selama seminggu sampai jadi kebiasaan, lalu tambah 5 lagi. Cara ini jauh lebih efektif daripada hafal semua sekaligus tapi tidak ada yang dipakai.
Developers who are proficient in VS Code are not because they memorize all shortcuts, but because they know the shortcuts that are used most often. Focus on mastering this list first — it's enough to increase productivity 2-3x.
Shortcut di bawah menggunakan format Windows/Linux. Untuk Mac, ganti Ctrl → Cmd dan Alt → Option.
🎯 Most Important (Master This First)
| Shortcuts |
Function |
| Ctrl+Shift+P | Command Palette — access all VS Code features |
| Ctrl+P | Quick Open — open files quickly |
| Ctrl+] | Toggle terminal |
| Ctrl+Z / Ctrl+Shift+Z | Undo / Redo |
| Ctrl+S | Save file |
| Ctrl+W | Close active tabs |
Navigation
| Shortcuts |
Function |
| Ctrl+G | Jump to a specific line |
| Ctrl+Home / Ctrl+End | To the beginning / end of the file |
| Alt+←/ Alt+→ | Navigation history (back/forward) |
| Ctrl+Tab | Switch between open tabs |
| F12 | Go to Definition |
| Alt+F12 | Peek Definition (without moving files) |
| Shift+F12 | View all references to functions/variables |
| Ctrl+Shift+O | Jump to the symbol (function/class) in the active file |
✏️ Editing
| Shortcuts |
Function |
| Alt+↑/ Alt+↓ | Move row up / down |
| Shift+Alt+↑/ ↓ | Duplicate rows up / down |
| Ctrl+Shift+K | Delete active row |
| Ctrl+Enter | New line below (without moving cursor) |
| Ctrl+Shift+Enter | Rows Above |
| Ctrl+] | Toggle line comments |
| Tab/Shift+Tab | Indent / unindent row or selection |
| Ctrl + Shift + U | Fold the code block |
| Ctrl + Shift + U | Unfold code block |
🖱️ Multi-Cursor (Game Changer!)
| Shortcuts |
Function |
| Alt+Click | Add cursor in click position |
| Ctrl+D | Select the same next word |
| Ctrl+Shift+L | Select all occurrences of the same word |
| Ctrl+Alt+↑/ ↓ | Add cursor above / below |
| F2 | Rename all symbol occurrences |
🔍 Search & Replace
| Shortcuts |
Function |
| Ctrl+F | Search in active files |
| Ctrl+H | Search and replace in active file |
| Ctrl+Shift+F | Search in all files (global search) |
| Ctrl+Shift+H | Replace in all files |
Terminal
| Shortcuts |
Function |
| Ctrl+] | Toggle panel terminal |
| Ctrl + Shift + U | Create a new terminal |
| Ctrl+Shift+5 | Split terminal |
| Alt+1, Alt+2, ... | Move to the 1st, 2nd, etc terminals. |
💡 Tips Belajar Shortcut
Jangan coba hafal semua sekaligus. Pilih 5 shortcut saja yang belum kamu pakai, praktikkan selama seminggu sampai jadi kebiasaan, lalu tambah 5 lagi. Cara ini jauh lebih efektif daripada hafal semua sekaligus tapi tidak ada yang dipakai.
Siap Mulai Karir IT-mu?
Bergabung dengan ribuan alumni DebugGo yang sudah berhasil masuk industri teknologi.
Lihat Kelas DebugGo
Komentar 0