1
0

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 3 years have passed since last update.

vscodeの設定・ショートカットで悩んだ話

Last updated at Posted at 2020-06-03

emacs使いが,vscodeの設定・ショートカットで悩んだ個人のメモです.

ショートカット

emacs

emacsのkeymapを入れると変なところでおかしくなります.

例えば,ctrl-c,vでcopy and pasteができなくなったり,
ctrl-aが消えたり...

windowの切り替え

  • ctrl-0
  • ctrl-2 で2分割
  • ctrl-1 でexplorerへ
  • ctrl-b でexplorerの表示のon-off
  • ctrl-w でclose the window

editorとterminalの切り替え

keybindings.json

消えた.今は,File->Preferences->KeyboardShortcutsを選んで,右上の斑点のようなボタンを押すとkeybindings.jsonがeditorで立ち上がります.そこへ加えていきます.

keybindings.json
[
  {
    "key": "ctrl+;",    "command": "workbench.action.terminal.focus",
                           "when": "editorTextFocus"
  },
  {
    "key": "ctrl+;",    "command": "workbench.action.focusFirstEditorGroup",
                           "when": "terminalFocus"
  }
]

indent region

領域を選択してtabでできます.
逆はshift-tab

terminalの切り替え

始めるdirectoryごとに設定が違うみたい.

  • wslのrubyで始めるとfishが,
  • Desktopのpythonで始めるとpowershellが立ち上がります.

ありがたいことです.でも...

fishのフォントを直してみると...

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?