2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Visual Studio Code チートシート

Last updated at Posted at 2018-10-08

official manual

misc

key description
Ctrl+Shift+P Show All Commands
Ctrl+R Open recent open file list

navigation

key description
F12 Go to Definition
Ctrl+Alt+- navigateBack, the curret position is back before jump
Ctrl+Shift+- navigatForward, the curret position is forward before navigateBack
Ctrl+U cursorUndo
Ctrl+Shift+F10 peekDefinition

Edit

key description
Ctrl+Shift+K delete line
Ctrl+Backspace delete left word
Ctrl+Delete delete lright word
Ctrl+/ Toggle line comment
Ctrl+shift+A Toggle block comment
Ctrl+. quick fix.
Ctrl+Space toggle suggestion

jumpy

This plugin supports to jump specific place easily.
0481c44c-9a32-11e6-87cc-1f8913922ccb.gif

  • copy image from jumpy plugin page.
key description
Shift+Enter jumpy word mode
Esc Quit jumpy mode when you are in jumpy mode

Indentation Level movement

indentation-level-movement.gif

Move cousor to the same indention level

key description
Ctrl+Up Indentation level move up
Ctrl+Down Indentation level move down
Ctrl+Right Indentation level move right
Ctrl+Shift+Up Indentation level move up with select
Ctrl+Shift+Down Indentation level move down with select

Settings Sync

key bindings

key description
Shift+Alt+U Upload configuration
Shift+Alt+D Download configuration

Toggle Auto Download/Auto Upload

It looks that this feature doesn't work.
I lost extensions often when I use it.

Select Command "Sync : Advanced Options > Toggle Auto-Download On Startup" command to Turn ON / OFF the auto download.

Select Command "Sync : Advanced Options > Toggle Auto-Upload on Settings Change" command to Turn ON / OFF the auto-upload.

My customize part

I would like to move the cursor without cursor/home/end key because I use it often.

key description
ctrl+f Move the cursor to the right.
This is the same as emacs.
ctrl+b Move the cursor to the left.
This is the same as emacs.
ctrl+p Move the cursor to up.
This is the same as emacs.
ctrl+n Move the cursor to down.
This is the same as emacs.
ctrl+a Move the cursor to the beginning of the line.
This is the same as emacs.
ctrl+e Move the cursor to the end of the line.
This is the same as emacs.
ctrl+d Delete right.
This is the same as emacs.
ctrl+alt+f Find in file. Because I replace default "find in file" bind ctrl+f to move the cursor to the right.
ctrl+k ctrl+h toggle output.
This is default on linux but Windows binding is different so I set it.
ctrl+k ctrl+b Toggle sidebar visibility.
The default binding is ctrl+b but I use it to move the cursor.
ctrl+alt+d Add selection to next find match.
Because original binding ctrl+d is used to delete.

The config files are uploaded gist by sync setings plugin.

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?