LoginSignup
0
0

More than 3 years have passed since last update.

【Mac】VSCodeでExplorerからフォルダを作成するショートカットを追加する。

Last updated at Posted at 2020-01-10

はじめに

Explorerからフォルダを新規作成したいときのショートカットキー、地味にデフォルトでは設定されていません(Windows版は知らないですが。。。)。

デフォルトは未設定
image.png

そこで、Keybindingに新しいショートカットキーを追加しました。

追加方法

cmd+shift+Pでコマンドパレットを開き、「keyboard」と検索すると、
image.png
と表示されるので、Open Keyboard Shortcuts (Json)を選択。

そこに下記の文を追加してください。(keyの中身は好きに変えてください。)

[
    {
        "key": "ctrl+d",
        "command": "explorer.newFolder",
        "when":"explorerViewletVisible && filesExplorerFocus && !inputFocus"
    }
]

whenctrl+dをフォルダ作成として使うタイミングを記述する場所で、
https://code.visualstudio.com/docs/getstarted/keybindings
を参考に設定しました。

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