Linux vs code commonly used shortcut keys

Some commonly used shortcut keys are sorted out.
Reference: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf
Current shortcut key setting: ctrl-k ctrl-s

ctrl-k ctrl-s shortcut key setting
ctrl-, open settings

ctrl-shift-i format the entire document
ctrl-k ctrl-f format the selected part

ctrl-k ctrl-x deletes spaces at the end of the line

ctrl-b sidebar show hide
ctrl-j the panel below show hide
ctrl-shift-e show explorer
ctrl-shift-f workspace search

ctrl-p to open the file
F1 or ctrl-shift-p to execute the menu function through the command

ctrl-w close the current editing window
ctrl-x cut, I use it for deletion

ctrl-enter
ctrl-shift-enter Insert new line above/below

ctrl-F2 The word where the current cursor is located, select all in the current document, can modify in batches
alt-click insert cursor, can operate multiple lines at the same time, such as selection, modification, etc.
shift-alt-drag column selection

ctrl-], ctrl-[
tab, shift-tap increase and decrease indentation
ctrl-m tab shift focus mode switching, after opening tab switch window focus, not the function of editing indentation. "Tab Moves Focus" is displayed in the status bar below vs code. Press it again to switch back to normal mode.

ctrl-/ line comment
ctrl-shift-a block comment

Alt-z interface displays line break soft wrap

ctrl-r open recent
ctrl-t Jump to symbol (current workspace, symbol refers to class name, function name, variable name)
ctrl-shift-o Jump to symbol (current file)
ctrl-p Jump to file
ctrl-g Jump to the specified line number

ctrl-shift-m to open the problem window, the default is below

ctrl + alt + - go back to the previous jump view
ctrl-shift-+ jump forward

ctrl-/ Split the editing window

ctrl-shift-tab reopens the closed editing window, similar to the chrome browser

alt-1/2/3/4... switch editing window
ctrl-tab

ctrl-k r opens the current editing file in the file manager

ctrl- tab上面那个键,跳转到vs code的terminal窗口 ctrl-shift-create a terminal window of vs code
ctrl-shift-up/down scroll terminal window

おすすめ

転載: blog.csdn.net/yinminsumeng/article/details/129460760