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

サクラエディタを ctrl + shift + w で閉じれるようにする

0
Posted at

サクラエディタを ctrl + shift + w で閉じれるようにする:octopus:
サクラエディタ v2.4.1.2849

経緯

サクラエディタには一応閉じる用のショートカットが用意されていて、
alt + F4 で閉じることはできるようになっている。
が、正直使い慣れた ctrl + w で閉じたいというのが人情。
alt + F4 は正直押しづらいねん。officeに慣れてる人なら別かも知らんけど。
ただし、確認してみると ctrl + w には既に"現在位置の単語選択"という機能が割り当てられているのである。
ならどうするか。
どうやらshiftを追加すると何も割り当てられてないらしい。
じゃあそこに入れよう。

方法

1.以下のjsファイルをどっかに用意する。

tojiru.js
WinClose();

2.作ったマクロを登録する。

サクラエディタを開く。
設定_共通設定_マクロ から、作ったマクロを登録する。
登録名はデフォルトの機能と一応区別するために"マクロで閉じる"とかにすれば良いかも

3.キー割り当てでctrl + shift + wで登録したマクロが実行されるようにする。

設定_共通設定_キー割り当て を開く。
種別_外部マクロを選択することで、先ほど登録したマクロが見つかるからそれを選択状態にする。
画面右のキー一覧で ctrl + shift + w を選択。
何も機能が割り当てられていないのを確認した上で、割付ボタンを押下。
下部OKボタンを押下。

結果

ctrl + shift + w でエディタが閉じれるようになる!
自分は中指・薬指・小指でいつも閉じている。

その他

thanks for reading!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?