ข้อมูลอ้างอิง Visual Studio Code ที่ค้นหาและพิมพ์ได้ — ทางลัดแป้นพิมพ์สำหรับการแก้ไข การนำทาง multi-cursor การค้นหา และเทอร์มินัล ฟรี

Command palette & general

9
Cmd/Ctrl + Shift + P
Command palette (run any command)
Cmd/Ctrl + P
Quick open a file by name
Cmd/Ctrl + Shift + N
New editor window
Cmd/Ctrl + ,
Open settings
Cmd/Ctrl + K Cmd/Ctrl + S
Open keyboard shortcuts
Cmd/Ctrl + S
Save file
Cmd/Ctrl + Shift + S
Save as
Cmd/Ctrl + W
Close editor
Cmd/Ctrl + Shift + T
Reopen the last closed editor

Editing

11
Cmd/Ctrl + X
Cut line (no selection)
Cmd/Ctrl + C
Copy line (no selection)
Alt + ↑ / ↓ (Opt on Mac)
Move line up / down
Shift + Alt + ↑ / ↓
Copy line up / down
Cmd/Ctrl + Shift + K
Delete line
Cmd/Ctrl + Enter
Insert line below
Cmd/Ctrl + Shift + Enter
Insert line above
Cmd/Ctrl + /
Toggle line comment
Shift + Alt + A
Toggle block comment
Cmd/Ctrl + ] / [
Indent / outdent line
Cmd/Ctrl + Shift + \
Jump to matching bracket

Multi-cursor & selection

9
Cmd/Ctrl + D
Select next match of the selection
Cmd/Ctrl + Shift + L
Select all matches at once
Cmd + Opt + ↑ / ↓ (Mac)
Add cursor above / below
Ctrl + Alt + ↑ / ↓ (Win)
Add cursor above / below
Alt + Click (Opt on Mac)
Add a cursor at the click
Cmd/Ctrl + U
Undo the last cursor operation
Cmd/Ctrl + L
Select the current line
Cmd/Ctrl + Shift + →/←
Expand selection by word
Shift + Alt + I
Cursor at end of each selected line

Navigation

9
Cmd/Ctrl + G
Go to line number
Cmd/Ctrl + Shift + O
Go to symbol in file
Cmd/Ctrl + T
Go to symbol in workspace
F12 / Cmd/Ctrl + Click
Go to definition
Alt + F12
Peek definition
Cmd/Ctrl + - / Ctrl + -
Go back to previous location
Cmd/Ctrl + Shift + \
Navigate matching bracket
Cmd/Ctrl + 1 / 2 / 3
Focus editor group 1 / 2 / 3
Ctrl + Tab
Cycle through open editors

Search & replace

9
Cmd/Ctrl + F
Find in file
Cmd/Ctrl + H (Alt+Cmd+F on Mac)
Replace in file
Cmd/Ctrl + Shift + F
Find across files
Cmd/Ctrl + Shift + H
Replace across files
Enter / Shift + Enter
Next / previous match
Alt + Enter
Select all find matches
.* toggle
Enable regular-expression search
Aa toggle
Toggle case-sensitive search
Cmd/Ctrl + Shift + J
Toggle search details / filters

Refactor & code actions

9
F2
Rename symbol
Cmd/Ctrl + .
Quick fix / code actions
Cmd/Ctrl + Shift + R
Refactor menu
Shift + Alt + F
Format document
Cmd/Ctrl + K Cmd/Ctrl + F
Format selection
Cmd/Ctrl + Space
Trigger suggestions / IntelliSense
Cmd/Ctrl + Shift + Space
Trigger parameter hints
Cmd/Ctrl + K Cmd/Ctrl + I
Show hover info
Shift + F12
Find all references

Integrated terminal

8
Ctrl + ` (backtick)
Toggle the terminal panel
Cmd/Ctrl + Shift + `
Create a new terminal
Cmd/Ctrl + \ (in terminal)
Split the terminal
Cmd/Ctrl + Shift + 5
Split the active terminal
Alt + Cmd + ←/→ (Mac)
Focus previous / next terminal
Cmd/Ctrl + C
Copy selection (else interrupt)
Cmd/Ctrl + K (focused)
Clear the terminal
kill icon / trash
Kill the active terminal

Display & layout

10
Cmd/Ctrl + B
Toggle the side bar
Cmd/Ctrl + J
Toggle the bottom panel
Cmd/Ctrl + Shift + E
Show the Explorer
Cmd/Ctrl + Shift + G
Show Source Control
Cmd/Ctrl + Shift + X
Show Extensions
Cmd/Ctrl + Shift + D
Show Run & Debug
Cmd/Ctrl + K Z
Zen mode (distraction free)
Cmd/Ctrl + = / -
Zoom editor in / out
Cmd/Ctrl + \
Split the editor
Ctrl + Cmd + F (Mac) / F11
Toggle full screen

ไม่มีรายการที่ตรงกับ “:q”


เกี่ยวกับ ชีตสรุป VS Code

ชีทสรุป VS Code นี้เป็นเอกสารอ้างอิงที่เน้นคีย์บอร์ดสำหรับ Visual Studio Code: command palette และทางลัดทั่วไป การแก้ไข multi-cursor และการเลือกข้อความ การนำทาง การค้นหาและแทนที่ การรีแฟกเตอร์และ code action เทอร์มินัลในตัว รวมถึงการควบคุมการแสดงผลและเลย์เอาต์

แถวส่วนใหญ่แสดงคีย์ผสมของ Windows/Linux และ macOS สำหรับการกระทำหนึ่งอย่าง — ย้ายบรรทัด เพิ่ม cursor กระโดดไปยัง symbol สลับเทอร์มินัล — เพราะเอดิเตอร์จะเร็วขึ้นอย่างมากเมื่อสิ่งเหล่านี้อยู่ในนิ้วมือแทนที่จะอยู่ในเมนู

ชีทนี้ฟรีและทำงานฝั่งไคลเอนต์ กรองทางลัดแบบเรียลไทม์ด้วยช่องค้นหา กระโดดระหว่างหมวดจากสารบัญแบบ sticky คัดลอกคีย์ผสมใด ๆ ด้วยคลิกเดียว และพิมพ์หน้านี้ออกมา — ชีททางลัดแบบพิมพ์กระดาษเป็นวิธีที่เร็วที่สุดในการเลิกใช้เมาส์

วิธีใช้ ชีตสรุป VS Code

  1. เปิดชีทและไล่ดูหมวดต่าง ๆ ตั้งแต่ Command palette & general ไปจนถึง Display & layout
  2. ค้นหาการกระทำอย่าง multi-cursor, terminal หรือ rename เพื่อกรองทางลัดแบบเรียลไทม์
  3. กระโดดไปยังหมวดอย่าง Navigation หรือ Refactor & code actions ผ่านแถบข้าง sticky sidebar
  4. คลิกทางลัดหรือไอคอนคัดลอกหากต้องการวางลงในบันทึกหรือเอกสาร
  5. พิมพ์ชีทออกมาและวางไว้ให้เห็นได้เสมอจนกว่าทางลัดเหล่านั้นจะกลายเป็นอัตโนมัติ

คำถามที่พบบ่อย

ใช่ แสดงคีย์ผสมสำหรับข้อตกลงคีย์บอร์ดทั้งสองแบบ ดังนั้นชีทนี้ใช้ได้ไม่ว่าคุณจะใช้ Windows, Linux หรือ macOS

แปดหมวด: command palette และทั่วไป การแก้ไข multi-cursor และการเลือก การนำทาง การค้นหาและแทนที่ การรีแฟกเตอร์และ code action เทอร์มินัลในตัว และการแสดงผลและเลย์เอาต์

เริ่มจาก command palette — มันเข้าถึงคำสั่งอื่นทุกตัวได้ด้วยชื่อ — แล้วต่อด้วยหมวดการนำทางและ multi-cursor ซึ่งให้ความเร็วในการทำงานประจำวันมากที่สุด

ได้ทั้งสองอย่าง ช่องค้นหากรองทุกแถวแบบเรียลไทม์พร้อมตัวนับผลลัพธ์ และปุ่มพิมพ์สร้างชีทที่สะอาดโดยไม่มีองค์ประกอบของหน้าเว็บ

ใช่ ฟรีทั้งหมด — เอกสารอ้างอิงฝั่งไคลเอนต์ที่ไม่ต้องมีบัญชี

แชร์สิ่งนี้

การค้นหายอดนิยม
vs code cheat sheet vs code keyboard shortcuts vscode shortcuts list vs code multi cursor shortcuts vs code command palette vscode search and replace shortcuts vs code terminal shortcuts vs code navigation shortcuts
ต้องการความช่วยเหลือ?
พบปัญหากับเครื่องมือนี้หรือไม่? แจ้งทีมงานของเรา
รายงานปัญหา

เพิ่มเครื่องมือฟรีนี้ลงในเว็บไซต์ของคุณเอง — คัดลอกและวางโค้ดด้านล่าง