Menu

  • Trang chủ
  • Trending
  • Gợi ý bạn đọc

Chuyên mục

  • Tin tức
  • Hackintosh
  • Lập trình
  • Software
  • Thủ thuật
  • Chia sẻ
  • GenZA Can Cook
  • GenZA Beauty
  • Cảm nhận cuộc sống

Liên hệ hợp tác

admin@genzakit.com
Genzakit
Không có kết quả phù hợp
Xem tất cả kết quả
  • Đăng nhập
Genzakit
Không có kết quả phù hợp
Xem tất cả kết quả

Tổng hợp phím tắt của VS Code

395
CHIA SẺ
2.6k
LƯỢT XEM
Chia sẻ lên FacebookChia sẻ lên TwitterLưu lại trên Pinterest

Trong những năm qua, tôi đã sử dụng một loạt các Code Editor khác nhau; TextMate, Php Storm, Sublime Text, Atom, và mỗi cái có những ưu điểm và nhược điểm khác nhau. Tuy nhiên, Visual Studio Code thì tôi đã hoàn toàn bị thuyết phục cho đến lúc này. Có rất nhiều các bài viết về tính năng vượt trội của nó so với các Code editor khác. Tuy nhiên trong bài viết này tôi sẽ chỉ chia sẻ về các phím tắt của Visual Studio Code sẽ giúp chúng ta tối ưu các thao tác hơn trong quá trình xử lý. Để xem bảng các phím tắt này chúng ta có thể bật Visual Studio Code lên và vào các mục File > Preferences > Keyboard Shortcuts. (Code > Preferences > Keyboard Shortcuts on macOS)

Các phím tắt dưới đây sẽ dùng cho macOS nếu bạn dùng Win chỉ cần thay ⌘ => Ctrl, ⇧ => Shift, ⌥ => Alt

Basic Editing

Key Command
⌘X Cut line (empty selection)
⌘C Copy line (empty selection)
⇧⌘K Delete Line
⌘Enter Insert Line Below
⇧⌘Enter Insert Line Above
⌥↓ Move Line Down
⌥↑ Move Line Up
⇧⌥↓ Copy Line Down
⇧⌥↑ Copy Line Up
⌘D Add Selection To Next Find Match
⌘K ⌘D Move Last Selection To Next Find Match
⌘U Undo last cursor operation
⇧⌥I Insert cursor at end of each line selected
⇧⌘L Select all occurrences of current selection
⌘F2 Select all occurrences of current word
⌘L Select current line
⌥⌘↓ Insert Cursor Below
⌥⌘↑ Insert Cursor Aove
⇧⌘\ Jump to matching bracket
⌘] Indent Line
⌘[ Outdent Line
Home Go to Beginning of Line
End Go to End of Line
⌘↓ Go to End of File
⌘↑ Go to Beginning of File
⌃PageDown Scroll Line Down
⌃PageUp Scroll Line Up
⌘PageDown Scroll Page Down
⌘PageUp Scroll Page Up
⌥⌘[ Fold (collapse) region
⌥⌘] Unfold (uncollapse) region
⌘K ⌘[ Fold (collapse) all subregions
⌘K ⌘] Unfold (uncollapse) all subregions
⌘K ⌘0 Fold (collapse) all regions
⌘K ⌘J Unfold (uncollapse) all regions
⌘K ⌘C Add Line Comment
⌘K ⌘U Remove Line Comment
⌘/ Toggle Line Comment
⇧⌥A Toggle Block Comment
⌘F Find
⌥⌘F Replace
⌘G Find Next
⇧⌘G Find Previous
⌥Enter Select All Occurrences of Find Match
⌥⌘C Toggle Find Case Sensitive
⌥⌘R Toggle Find Regex
⌥⌘W Toggle Find Whole Word
⌃⇧M Toggle Use of Tab Key for Setting Focus
unassigned Toggle Render Whitespace
⌥Z Toggle Word Wrap

Rich Languages Editing

Key Command
⌃Space Trigger Suggest
⇧⌘Space Trigger Parameter Hints
⇧⌥F Format Document
⌘K ⌘F Format Selection
F12 Go to Definition
⌘K ⌘I Show Hover
⌥F12 Peek Definition
⌘K F12 Open Definition to the Side
⌘. Quick Fix
⇧F12 Peek References
F2 Rename Symbol
⇧⌘. Replace with Next Value
⇧⌘, Replace with Previous Value
⌃⇧⌘→ Expand AST Selection
⌃⇧⌘← Shrink AST Selection
⌘K ⌘X Trim Trailing Whitespace
⌘K M Change Language Mode

Navigation

Key Command
⌘T Show All Symbols
⌃G Go to Line…
⌘P Go to File…, Quick Open
⇧⌘O Go to Symbol…
⇧⌘M Show Problems
F8 Go to Next Error or Warning
⇧F8 Go to Previous Error or Warning
⇧⌘P Show All Commands
⌃⇧Tab Navigate Editor Group History
⌃- Go Back
⌃- Go back in Quick Input
⌃⇧- Go Forward

Editor/Window Management

Key Command
⇧⌘N New Window
⇧⌘W Close Window
⌘W Close Editor
⌘K F Close Folder
⌘\ Split Editor
⌘1 Focus into First Editor Group
⌘2 Focus into Second Editor Group
⌘3 Focus into Third Editor Group
⌘K ⇧⌘← Move Editor Left
⌘K ⇧⌘→ Move Editor Right
⌘K ← Move Active Editor Group Left
⌘K → Move Active Editor Group Right
⌃⌘→ Move Editor into Next Group
⌃⌘← Move Editor into Previous Group

File Management

Key Command
⌘N New File
⌘S Save
⌥⌘S Save All
⇧⌘S Save As…
⌘W Close
⌥⌘T Close Others
⌘K W Close Group
⌘K ⌘W Close All
⇧⌘T Reopen Closed Editor
⌘K Enter Keep Open
⌃Tab Open Next
⌃⇧Tab Open Previous
⌘K P Copy Path of Active File
⌘K R Reveal Active File in Windows
⌘K O Show Opened File in New Window

Display

Key Command
⌃⌘F Toggle Full Screen
⌘K Z Toggle Zen Mode
Escape Escape Leave Zen Mode
⌘= Zoom in
⌘- Zoom out
⌘Numpad0 Reset Zoom
⌘B Toggle Sidebar Visibility
⇧⌘E Show Explorer / Toggle Focus
⇧⌘F Show Search
⌃⇧G Show Source Control
⇧⌘D Show Debug
⇧⌘X Show Extensions
⇧⌘U Show Output
⌃Q Quick Open View
⇧⌘C Open New Command Prompt
⇧⌘V Toggle Markdown Preview
⌘K V Open Preview to the Side
⌃` Toggle Integrated Terminal

Search

Key Command
⇧⌘F Show Search
⇧⌘H Replace in Files
⌥⌘C Toggle Match Case
⌥⌘W Toggle Match Whole Word
⌥⌘R Toggle Use Regular Expression
⇧⌘J Toggle Search Details
F4 Focus Next Search Result
⇧F4 Focus Previous Search Result
↓ Show Next Search Term
↑ Show Previous Search Term

Preferences

Key Command
⌘, Open Settings
⌘K ⌘S Open Keyboard Shortcuts
⌘K ⌘T Select Color Theme

Debug

Key Command
F9 Toggle Breakpoint
F5 Start
F5 Continue
⌃F5 Start (without debugging)
F6 Pause
F11 Step Into
⇧F11 Step Out
F10 Step Over
⇧F5 Stop
⌘K ⌘I Show Hover

Tasks

Key Command
⇧⌘B Run Build Task
⇧⌘T Run Test Task

 

Source: visualstudio.com
Từ khoá: vscode
Next Post

Tổng hợp các phím tắt cơ bản cho macOS

Theo dõi
Đăng nhập
Thông báo của
guest
guest
0 Comments
Phản hồi nội tuyến
Xem tất cả bình luận

Có thể bạn quan tâm

Mách bạn cách làm trắng răng đơn giản tại nhà

Mách bạn cách làm trắng răng đơn giản tại nhà

by Huệ Minh
11 Tháng Mười, 2021
0
2.6k

Có nhiều cách để bạn lấy lại được hàm răng trắng như tìm đến nha khoa hoặc sử...

Cách làm gà hấp lá sen

Cách làm gà hấp lá sen

by Huệ Minh
19 Tháng Mười, 2021
0
2.6k

Trong Yêu Genzakit, chắc nhiều người cũng như mình, yêu lắm cái hương hoa sen mỗi mùa hè...

Cách để ẩn Notch trên MacBook Pro mới

Cách để ẩn Notch trên MacBook Pro mới

by Anthony Tran
6 Tháng Mười Một, 2021
0
2.6k

Nếu bạn mới “tậu” một chiếc MacBook Pro mới và cảm thấy chưa quen (hoặc khó chịu) với...

Các dấu hiệu chứng tỏ bạn đang làm việc quá sức

by Anthony Tran
12 Tháng Ba, 2020
0
2.6k

Xuyên suốt quá trình đi làm, sẽ khó tránh khỏi những lúc khối lượng công việc gia tăng...

  • Giới thiệu
  • Liên hệ
  • Chính sách bảo mật

© 2023 Genzakit

Không có kết quả phù hợp
Xem tất cả kết quả
  • Trending
  • Gợi ý bạn đọc
  • Tin tức
  • Hackintosh
  • Lập trình
  • Software
  • Thủ thuật
  • Chia sẻ
  • GenZA Can Cook
  • GenZA Beauty
  • Vui mỗi ngày
  • Cảm nhận cuộc sống

© 2022 Genzakit - Ngôi nhà giới trẻ

Chào mừng trở lại!

Đăng nhập bằng Facebook
Sign In with Google
OR

Đăng nhập

Quên mật khẩu?

Retrieve your password

Please enter your username or email address to reset your password.

Đăng nhập
wpDiscuz