LoginSignup
6
0

More than 5 years have passed since last update.

SublimeText3でNetBeans風のショートカットキー設定

Last updated at Posted at 2017-06-11

はじめに

SublimeTextのショートカットキーにどうしても慣れないため

馴染みのあるNetBeans(Windows)のショートカットキーを設定した記録です

設定変更手順

Preferences > Key Bindings

設定内容

sublime-keymap
[
    /* 行スワップ ↑ */
    { "keys": ["alt+shift+up"], "command": "swap_line_up" },
    /* 行スワップ ↓ */
    { "keys": ["alt+shift+down"], "command": "swap_line_down" },
    /* 行コピー */
    { "keys": ["ctrl+shift+up"], "command": "duplicate_line" },
    /* 行コピー */
    { "keys": ["ctrl+shift+down"], "command": "duplicate_line" },
    /* 行削除 */
    { "keys": ["ctrl+e"], "command": "run_macro_file", 
           "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
    /* 右インデント */
    { "keys": ["alt+shift+right"], "command": "indent" },
    /* 左インデント */
    { "keys": ["alt+shift+left"], "command": "unindent" },
    /* 単語選択 */
    { "keys": ["ctrl+r"], "command": "find_under_expand" },
    /**  対応する括弧へジャンプ */
    { "keys": ["ctrl+]"], "command": "move_to", "args": {"to": "brackets", "forward": true} },
    /**  対応する括弧へジャンプ */
    { "keys": ["ctrl+["], "command": "move_to", "args": {"to": "brackets", "forward": false} },
    /** 括弧内選択 */
    { "keys": ["ctrl+shift+["], "command": "expand_selection", "args": {"to": "brackets"} },
    { "keys": ["ctrl+shift+]"], "command": "expand_selection", "args": {"to": "brackets"} },
    /** 次のタブ */
    { "keys": ["alt+right"], "command": "next_view_in_stack" },
    /** 前ののタブ */
    { "keys": ["alt+left"], "command": "prev_view_in_stack" },

]

謝辞

参考にさせていただきました
Sublime Text 2のショートカットをNetbeansのショートカットに置き換える

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