Sublime Text 2のキーボードショートカット一覧 (Mac OS X)

ウインドウ・タブの操作

  • command + shift+ n : new_window
    • 新規ウインドウを開く
  • command + shift+ w : close_window
    • ウインドウを閉じる
  • command + alt+ up*] : switch_file
    • 関連づけられたファイル(ヘッダファイルなど)を開く

ウインドウの分割

  • command + alt+ 1~4 : set_layout
    • 横n等分
  • command + alt+ shift+ 2, 3
    • 縦n等分
  • command + alt+ 5
    • 縦横2等分

ウインドウグループ選択

  • ctrl+ 1~4 : focus_group

タブを選択したグループに移動

  • ctrl+ shift+ 1~4 : move_to_group
    • グループnに移動
  • ctrl+ 0 : focus_side_bar
    • サイドバーにフォーカス

タブの選択

  • command + 1~0 : select_by_index
  • command + shift+ [ : prev_view
  • command + shift+ ] : next_view
    • 隣のタブに移動
  • command + alt+ left : prev_view
  • command + alt+ right : next_view
    • 隣のタブに移動
  • ctrl+ tab : next_view_in_stack
  • ctrl+ shift+ tab : prev_view_in_stack
    • スタック内の前後のタブに移動
  • command + k → command + b : toggle_side_bar
    • サイドバーをトグル
  • command + ctrl+ f : toggle_full_screen
    • フルスクリーンモードをトグル
  • command + ctrl+ shift+ f : toggle_distraction_free
    • distraction freeモード(サイドバー、タブなどテキスト以外はいっさい表示しないフルスクリーンモード) をトグル
  • ctrl+ t : transpose
    • 新規ファイルを作成

一般

  • command + y : redo_or_repeat
    • リドゥ + それ以上復元する操作が無いときは最後の操作を繰り返す
  • command + u : soft_undo
  • command + shift+ u : soft_redo
    • ソフトアンドゥ(リドゥ) (カーソルの移動、文字列選択なども含めたアンドゥ、リドゥ)
  • command + shift+ v : paste_and_indent
    • ペーストしてインデント
  • ctrl+ alt+ up : scroll_lines
  • ctrl+ alt+ down : scroll_lines
    • 画面のスクロール
  • ctrl+ space : auto_complete
    • 補完候補を表示
  • command + alt+ o : toggle_overwrite
    • 上書きモードをトグル
  • alt+ f2 : context_menu
    • コンテキストメニューを開く

カーソルの移動・文字列選択

  • ctrl+ left : move
  • ctrl+ right : move
    • 単語単位でカーソル移動
  • ctrl+ shift+ left : move
  • ctrl+ shift+ right : move
    • 単語単位で選択
  • ctrl+ shift+ up : select_lines
  • ctrl+ shift+ down : select_lines
    • 隣の行にカーソルが増える
  • command + l : expand_selection
    • 行末まで選択
  • command + d : expand_selection
    • カレントワードを選択
  • command + d : find_under_expand 選択中の文字列を検索して順次選択
  • command + shift+ space : expand_selection
    • スコープ範囲を選択
  • ctrl+ shift+ m : expand_selection
    • 括弧の中を選択
  • ctrl+ m : move_to
    • 括弧の始め、終わりまでカーソル移動
  • command + shift+ j : expand_selection
    • インデントまで選択
  • command + shift+ a : expand_selection
    • タグまで選択
  • command + shift+ l : split_selection_into_lines
    • 選択部分から改行を削除
  • ctrl+ command + up : swap_line_up
  • ctrl+ command + down : swap_line_down
    • カレント行を前後の行と入れ替え
  • ctrl+ backspace : delete_word
  • ctrl+ delete : delete_word
    • 単語削除
  • command + shift+ d : duplicate_line
    • 選択中の行を複製
  • command + enter : run_macro_file
    • 改行(変換の確定などは行われない)
  • command + shift+ enter : run_macro_file
    • 一つ下の行に改行を追加

検索関連

プロンプトやパネルを表示

  • command + p : show_overlay
  • command + t : show_overlay
    • ファイル選択プロンプト
  • command + shift+ p : show_overlay
    • コマンドパレット
  • command + ctrl+ p : prompt_select_project
    • プロジェクト選択プロンプト
  • command + r : show_overlay
    • 関数検索プロンプト
  • ctrl+ g : show_overlay
    • 行番号指定プロンプト
  • command + f : show_panel
    • 検索パネル
  • command + alt+ f : show_panel
    • 置換パネル
  • command + shift+ f : show_panel
    • ファイルやフォルダを指定して検索
  • command + i : show_panel
    • インクリメンタルサーチ
  • command + shift+ i : show_panel
    • インクリメンタルサーチ(遡って検索)

検索パネル内での操作

  • command + g : find_next
    • 次を検索
  • command + shift+ g : find_prev
    • 前を検索
  • f4 : next_result
    • 次の結果
  • shift+ f4 : prev_result
    • 前の結果

検索パネルでのエンターの扱い

  • enter : find_next
    • 次を検索
  • shift+ enter : find_prev
    • 前を検索
  • alt+ enter : find_all
    • 全て検索

置換パネルでのエンターの扱い

  • enter : find_next
    • 次を検索
  • shift+ enter : find_prev
    • 前を検索
  • alt+ enter : find_all
    • 全て検索
  • ctrl+ alt+ enter : replace_all
    • 全て置換

インクリメンタルサーチでのエンターの扱い

  • enter : hide_panel
    • パネルを閉じる
  • shift+ enter : find_prev
    • 前を検索
  • alt+ enter : find_all
    • 全て検索

検索パネルの設定

  • command + alt+ c : toggle_case_sensitive
    • ケースセンシティブをトグル
  • command + alt+ r : toggle_regex
    • 正規表現のトグル
  • command + alt+ w : toggle_whole_word
    • 全文検索のトグル
  • command + alt+ a : toggle_preserve_case

カレントワードから検索

  • command + e : slurp_find_string
    • カレントワードを検索
  • command + shift+ e : slurp_replace_string
    • カレントワードを対象に置換
  • alt+ command + g : find_under
    • カレントワードで次を検索
  • shift+ alt+ command + g : find_under_prev
    • カレントワードで前を検索
  • ctrl+ command + g : find_all_under
    • カレントワードで全て検索

開発補助

  • command + b : build
  • f7 : build
    • ビルド

折りたたみ

  • command + k → command + 1~9 : fold_by_level
    • レベルnの折りたたみ
  • command + k → command + 0 : unfold_all
  • command + k → command + j : unfold_all
    • 折りたたみを全て解除
  • command + alt+ [ : fold
  • command + alt+ ] : unfold
    • 選択部分の折りたたみ・解除
  • command + k → command + t : fold_tag_attributes
    • タグを折り畳む
  • command + / : toggle_comment
  • command + alt+ / : toggle_comment
    • コメントアウトのトグル
  • command + ] : indent
  • command + [ : unindent
    • インデント・アンインデント
  • command + alt+ . : close_tag
    • タグを閉じる

マクロ

  • ctrl+ q : toggle_record_macro
    • マクロの記録の開始・終了
  • ctrl+ shift+ q : run_macro
    • 記録したマクロの実行
  • ctrl+ shift+ k : run_macro_file
    • マクロファイルの実行

マーク・ブックマーク

  • command + f2 : toggle_bookmark
    • ブックマークを追加・削除
  • alt+ f2 : select_all_bookmarks
    • 全てのブックマークを選択
  • f2 : next_bookmark
  • shift+ f2 : prev_bookmark
    • 次/前のブックマーク
  • command + k → command + space : set_mark
    • マークを設置
  • command + k → command + a : select_to_mark
  • command + k → command + w : delete_to_mark
    • マークまで選択/削除
  • command + k → command + x : swap_with_mark
    • マークをカレント行に移す
  • command + shift+ f2 : clear_bookmarks
  • command + k → command + g : clear_bookmarks
    • マーク・ブックマークをクリア
  • command + alt+ p : show_scope_name
  • ctrl+ shift+ p : show_scope_name
    • スコープ名を表示
  • ctrl+ shift+ w : insert_snippet
    • スにペットに選択文字列を挿入
  • ctrl+ ` : show_panel
    • pythonコンソールをトグル

整形

  • command + k → command + u : upper_case
  • command + k → command + l : lower_case
    • 選択範囲を全て大文字/小文字に
  • f6 : toggle_setting
    • スペルチェック機能のトグル
  • ctrl+ f6 : next_misspelling
    • 次のミススペルを選択
  • ctrl+ shift+ f6 : prev_misspelling
    • 前のミススペルを選択
  • command + alt+ q : wrap_lines
    • パラグラフの整形
  • f5 : sort_lines
    • 行をソート
  • ctrl+ f5 : sort_lines
    • 大文字小文字を考慮して行をソート

emacsキーバインドの代替2キーショートカット

  • command + k → command + k : run_macro_file
    • ctrl + kと同様
  • command + k → command + y : yank
    • ctrl + yと同様
  • command + k → command + backspace : run_macro_file
    • 行削除
  • command + k → command + c : show_at_center
    • ctrl + l と同様

3 Reactions on Twitter

Powerd by Topsy
  1. @sugimoto1981 @sugimoto1981 より:

    みてる → Sublime Text 2のキーボードショートカット一覧 (Mac OS X) http://t.co/djOGF5yX

  2. @girigiribauer @girigiribauer より:

    みてる → Sublime Text 2のキーボードショートカット一覧 (Mac OS X) http://t.co/djOGF5yX

  3. @complicate000 @complicate000 より:

    Sublime Text 2のキーボードショートカット一覧 (Mac OS X) http://t.co/ItdMDnae