新石器Wiki

近年はシリコン(石)から進化した便利なもので溢れる時代。そんな気になった事や試した事など記す。

ユーザ用ツール

サイト用ツール


software:vscode:vscode-emadcs-keybindings


差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
software:vscode:vscode-emadcs-keybindings [2023/06/25 10:40] yokosoftware:vscode:vscode-emadcs-keybindings [2026/07/28 13:16] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
-VSCodeをEmacsキー配列で使う +====== VSCodeをEmacsキー配列で使う ======
-=========================+
 以下の記事で「VSCode([[https://code.visualstudio.com/|Visual Studio Code]])」をインストールした。そして、Emacsキー配列で使うようにカスタマイズしたので備忘録を残す。 以下の記事で「VSCode([[https://code.visualstudio.com/|Visual Studio Code]])」をインストールした。そして、Emacsキー配列で使うようにカスタマイズしたので備忘録を残す。
  
行 6: 行 5:
  
  
-基本キーボード配列変更 +===== 基本キーボード配列変更 =====
-------------------+
 Emacs配列の場合は、CtrlキーとMetaキーが押しやすい位置にあった方が便利なので、以下の変更をする。 Emacs配列の場合は、CtrlキーとMetaキーが押しやすい位置にあった方が便利なので、以下の変更をする。
  
行 96: 行 94:
  
  
-VSCodeのキーバインド変更 +===== VSCodeのキーバインド変更 =====
---------------------+
 拡張機能を使ってEmacsキー準拠配列にカスタマイズする。いろいろな拡張機能が公開されているが「[[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]]」がお勧めでインストールする。 拡張機能を使ってEmacsキー準拠配列にカスタマイズする。いろいろな拡張機能が公開されているが「[[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]]」がお勧めでインストールする。
  
行 112: 行 109:
 [[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]] [[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]]
  
-キーバインドの調整 +===== キーバインドの調整 =====
---------------+
 あとは、好みのキーバインドを追加する。キーバインドは、`keybindings.json` ファイルに記述する事で設定できる。 あとは、好みのキーバインドを追加する。キーバインドは、`keybindings.json` ファイルに記述する事で設定できる。
  
行 164: 行 160:
     },     },
     {     {
-        "key": "ctrl-i",+        "key": "ctrl+q ctrl+i",
         "command": "tab",         "command": "tab",
         "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"         "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
-    }+    }
 +    { 
 +        "key": "ctrl+q ctrl+f", 
 +        "command": "editor.action.addSelectionToNextFindMatch", 
 +        "when": "editorFocus" 
 +    },     
 +    // サイドバーのファイラーへ移動(戻る) 
 +    { 
 +        "key": "ctrl-z ctrl-o", 
 +        "command": "workbench.view.explorer"         
 +    },
 ] ]
 </code> </code>
行 174: 行 180:
 以下のキー定義となる。 以下のキー定義となる。
  
-^ キー割当て  ^ 説明                  ^ コマンド                         ^ +^ キー割当て  ^ 説明                        ^ コマンド                         ^ 
-| C-,         | 左のタブへ切り換え    | workbench.action.previousEditor +| C-,         | 左のタブへ切り換え          | workbench.action.previousEditor 
-| C-.         | 右のタブへ切り換え    | workbench.action.nextEditor      | +| C-.         | 右のタブへ切り換え          | workbench.action.nextEditor      | 
-| C-z C-p     | 左のタブへ切り換え    | workbench.action.previousEditor +| C-z C-p     | 左のタブへ切り換え          | workbench.action.previousEditor 
-| C-z C-n     | 右のタブへ切り換え    | workbench.action.nextEditor      | +| C-z C-n     | 右のタブへ切り換え          | workbench.action.nextEditor      | 
-| C-z C-a     | バッファー先頭に移動  | cursorTop                        | +| C-z C-a     | バッファー先頭に移動        | cursorTop                        | 
-| C-z C-e     | バッファー末尾に移動  | cursorBottom                     | +| C-z C-e     | バッファー末尾に移動        | cursorBottom                     | 
-| C-i         | タブ                  | tab                              |+C-q C-i     | タブ                       | tab                              
 +| C-z C-o     | サイドバーのファイラへ移動  | workbench.view.explorer          |
  
  
-C-sキーでの検索動作 +===== C-sキーでの検索動作 =====
-----------------+
 `C-s`キーでの検索の挙動が違っててストレスだったが、[[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]]のFAQにも書かれているがEmacsと同様にするには下記の設定を追加する。 `C-s`キーでの検索の挙動が違っててストレスだったが、[[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]]のFAQにも書かれているがEmacsと同様にするには下記の設定を追加する。
  
行 202: 行 208:
  
 ### 検索ウィジェットの終了 ### 検索ウィジェットの終了
-[[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]]のFAQにも書かれているが、ウィジェットは移動キーで閉じますので、検索ウィジット上でのカーソル移動はできない。これは、オリジナルのEmacsの動作を意図された設計です。+[[https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx|Awesome Emacs Keymap]]のFAQにも書かれているが、ウィジェットは移動キーで閉じますので、検索ウィジット上でのカーソル移動はできない。これは、オリジナルのEmacsの動作を意図された設計です。
  
  
行 209: 行 215:
  
  
-関連記事 +===== 関連記事 =====
--------+
  
   - [[software/vscode/vscode-user-settings]]   - [[software/vscode/vscode-user-settings]]
行 218: 行 223:
  
  
-参考 +===== 参考 =====
-----+
  
-1. [[https://qiita.com/peutes/items/4e20b48185b24bf06a8f?utm_source=pocket_mylist|Karabiner-Elementsで、MacのTerminalでoptionとcommandを入れ替え・自由にキーバインド変更をする例]] +  - [[https://qiita.com/peutes/items/4e20b48185b24bf06a8f?utm_source=pocket_mylist|Karabiner-Elementsで、MacのTerminalでoptionとcommandを入れ替え・自由にキーバインド変更をする例]] 
-2. [[https://knowledge.sakura.ad.jp/23355/?utm_source=pocket_mylist|快適キーボード操作のためのキーカスタマイズ ~Mac編~]] +  [[https://knowledge.sakura.ad.jp/23355/?utm_source=pocket_mylist|快適キーボード操作のためのキーカスタマイズ ~Mac編~]] 
-3. [[https://github.com/vscode-doc-jp/Docs/blob/master/getstarted/keybindings.md]] +  [[https://github.com/vscode-doc-jp/Docs/blob/master/getstarted/keybindings.md]] 
-4. [[https://qiita.com/kurun_pan/items/507517c3f569b080abe2|VSCodeのEmacsキーバインド拡張まとめ]] +  [[https://qiita.com/kurun_pan/items/507517c3f569b080abe2|VSCodeのEmacsキーバインド拡張まとめ]] 
-5. [[https://blog.solunita.net/posts/how-to-find-keybind-what-fired-in-vscode/|Visual Studio Code のキーボードショートカットで発火してるコマンドを探す方法]] +  [[https://blog.solunita.net/posts/how-to-find-keybind-what-fired-in-vscode/|Visual Studio Code のキーボードショートカットで発火してるコマンドを探す方法]] 
-6. [[https://noanoa07.livedoor.blog/archives/2196964.html|VSCode のキーボードショートカットのカスタマイズ法とオススメ設定]] +  [[https://noanoa07.livedoor.blog/archives/2196964.html|VSCode のキーボードショートカットのカスタマイズ法とオススメ設定]] 
-7. [[https://qiita.com/keitean/items/04727aeb673d1822107e|VSCodeでキーバインドを設定する。keybindings.jsonが無い時の対処法]] +  [[https://qiita.com/keitean/items/04727aeb673d1822107e|VSCodeでキーバインドを設定する。keybindings.jsonが無い時の対処法]] 
-8. [[http://hidemon-memo.blogspot.com/2019/04/vscodetabctrl-i.html|vscodeでtabをctrl-Iで入力する]] +  [[http://hidemon-memo.blogspot.com/2019/04/vscodetabctrl-i.html|vscodeでtabをctrl-Iで入力する]] 
-9. [[https://kkznch.hatenablog.com/entry/2020/10/11/160736|VSCodeでAwesome Emacs Keymap使ってるときに検索バー内でカーソル移動したい]]+  [[https://kkznch.hatenablog.com/entry/2020/10/11/160736|VSCodeでAwesome Emacs Keymap使ってるときに検索バー内でカーソル移動したい]] 
 +  - [[https://dev.classmethod.jp/articles/vscode_file_operation_shortcut_setting/|【小ネタ】極力キーボードから手を離したくないライトvimmerがVSCodeに設定しているショートカット(基本的なファイル操作編)]]
  
  
software/vscode/vscode-emadcs-keybindings.1687657252.txt.gz · 最終更新: by yoko