Sublime Text Shortcuts

Keyboard Shortcuts - Windows/Linux

Warning

This topic is a draft and may contain wrong information.

Editing

Keypress Command
Ctrl + X Cut line
Ctrl + ? Insert line after
Ctrl + ? + ? Insert line before
Ctrl + ? + ↑ Move line/selection up
Ctrl + ? + ↓ Move line/selection down
Ctrl + L Select line - Repeat to select next lines
Ctrl + D Select word - Repeat select others occurrences
Ctrl + M Jump to closing parentheses Repeat to jump to opening parentheses
Ctrl + ? + M Select all contents of the current parentheses
Ctrl + ? + K Delete Line
Ctrl + KK Delete from cursor to end of line
Ctrl + K + Backspace Delete from cursor to start of line
Ctrl + ] Indent current line(s)
Ctrl + [ Un-indent current line(s)
Ctrl + ? + D Duplicate line(s)
Ctrl + J Join line below to the end of the current line
Ctrl + / Comment/un-comment current line
Ctrl + ? + / Block comment current selection
Ctrl + Y Redo, or repeat last keyboard shortcut command
Ctrl + ? + V Paste and indent correctly
Ctrl + Space Select next auto-complete suggestion
Ctrl + U soft undo; jumps to your last change before undoing change when repeated
Alt + ? + W Wrap Selection in html tag

Windows

Ctrl + Alt + Up Column selection up
Ctrl + Alt + Down Column selection down

Linux

Alt + ? + Up Column selection up
Alt + ? + Down Column selection down

Navigation/Goto Anywhere

Keypress Command
Ctrl + P Quick-open files by name
Ctrl + R Goto symbol
Ctrl + ; Goto word in current file
Ctrl + G Goto line in current file

General

Keypress Command
Ctrl + ? + P Command prompt
Ctrl + KB Toggle side bar
Ctrl + ? + Alt + P Show scope in status bar

Find/Replace

Keypress Command
Ctrl + F Find
Ctrl + H Replace
Ctrl + ? + F Find in files

Tabs

Keypress Command
Ctrl + ? + t Open last closed tab
Ctrl + PgUp Cycle up through tabs
Ctrl + PgDn Cycle down through tabs
Ctrl + ? Find in files
Ctrl + W Close current tab
Alt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabs

Split window

Keypress Command
Alt + ? + 2 Split view into two columns
Alt + ? + 1 Revert view to single column
Alt + ? + 5 Set view to grid (4 groups)
Ctrl + [NUM] Jump to group where num is 1-4
Ctrl + ? + [NUM] Move file to specified group where num is 1-4

Bookmarks

Keypress Command
Ctrl + F2 Toggle bookmark
F2 Next bookmark
? + F2 Previous bookmark
Ctrl + ? + F2 Clear bookmarks

Text manipulation

Keypress Command
Ctrl + KU Transform to Uppercase
Ctrl + KL Transform to Lowercase

Keyboard Shortcuts - OSX

Warning

This topic is a draft and may contain wrong information.

Editing

Keypress Command
? + X Cut line
? + ? Insert line after
? + ? + ? Insert line before
? + ? + ↑ Move line/selection up
? + ? + ↓ Move line/selection down
? + L Select line - Repeat to select next lines
? + D Select word - Repeat to select next occurrence
? + ? + G Select all occurrences of current selection
? + ? + ↑ Extra cursor on the line above
? + ? + ↓ Extra cursor on the line below
? + M Jump to closing parentheses Repeat to jump to opening parentheses
? + ? + M Select all contents of the current parentheses
? + A Move to beginning of line
? + E Move to end of line
? + K, ? + K Delete from cursor to end of line
? + K + ? Delete from cursor to start of line
? + ] Indent current line(s)
? + [ Un-indent current line(s)
? + ? + D Duplicate line(s)
? + J Join line below to the end of the current line
? + / Comment/un-comment current line
? + ? + / Block comment current selection
? + Y Redo, or repeat last keyboard shortcut command
? + ? + V Paste and indent correctly
? + Space Select next auto-complete suggestion
? + U Soft undo; jumps to your last change before undoing change when repeated
? + ? + Up Column selection up
? + ? + Down Column selection down
? + ? + W Wrap Selection in html tag

Navigation/Goto Anywhere

Keypress Command
? + P or ? + T Quick-open files by name
? + R Goto symbol
  Goto word in current file
? + G Goto line in current file

General

Keypress Command
? + ? + P Command Palette
? + ` Python Console
? + ? + ? + F Toggle fullscreen mode
? + ? + F Toggle distraction-free mode
? + K, ? + B Toggle side bar
? + ? + P Show scope in status bar

Find/Replace

Keypress Command
? + F Find
? + ? + F Replace
? + ? + F Find in files

Scrolling

Keypress Command
? + V Scroll down one page
? + L Center current line vertically in page
? + Down Scroll to end of file
? + Up Scroll to start of file

Tabs

Keypress Command
? + ? + t Open last closed tab
? + [NUM] Jump to tab in current group where num is 1-9
? + 0 Jump to 10th tab in current group
? + ? + [ Cycle left through tabs
? + ? + ] Cycle right through tabs
^ + Tab Cycle up through recent tabs
? + ^ + Tab Cycle down through recent tabs
  Find in files

Split window

Keypress Command
? + ? + 1 Revert view to single column
? + ? + 2 Split view into two columns
? + ? + 3 Split view into three columns
? + ? + 4 Split view into four columns
? + ? + 5 Set view to grid (4 groups)
? + [NUM] Jump to group where num is 1-4
? + ? + [NUM] Move file to specified group where num is 1-4

Bookmarks

Keypress Command
? + F2 Toggle bookmark
F2 Next bookmark
? + F2 Previous bookmark
? + ? + F2 Clear bookmarks

Text manipulation

Keypress Command
? + K, ? + U Transform to Uppercase
? + K, ? + L Transform to Lowercase
? + ? + up, ? + ? + down Clip text upwards / downwards
时间: 2024-10-12 07:51:43

Sublime Text Shortcuts的相关文章

Custom &amp; Eclipse shortcuts key bindings for Sublime Text 2

[ { "keys": ["f12"], "command": "htmlprettify"}, { "keys": ["f1"], "command": "fold" }, { "keys": ["f2"], "command": "unfold" }, { &quo

sublime text 快捷键shortcuts

Sublime Text 3 Mac 指南本篇是根据kpman|Code 博客所写的,主要为方便自己忘记快捷键时可以快速查看,也希望对各位有一些些帮助. 快捷键 左边为文章中对快捷键缩写,右边为对应完成对键名.cmd=commandshift=shiftoption=optino(alt)control=controlpkg-ctrl=package control(command+shift+p) 基础模式 此部分为初学使用sublime常使用的快捷键,为比较常用的部分.1. cmd + o

Sublime Text 全程指南

安装(Installation) Sublime Text 官方网站 提供了Sublime Text各系统各版本的下载,目前Sublime Text的最新版本是 Sublime Text 3 .这里以Windows版本的Sublime Text安装为例. 注意在安装时勾选 Add to explorer context menu ,这样在右键单击文件时就可以直接使用Sublime Text打开. 添加Sublime Text到环境变量 使用 Win + R 运行 sysdm.cpl 打开"系统属

Getting started with TypeScript and Sublime Text -- 摘自https://cmatskas.com/getting-started-with-typescript-and-sublime-text/

Getting started with TypeScript and Sublime Text 04 March 2015  18 Comments  Posted in JavaScript, Open Source, TypeScript, Sublime Text UPDATED: This post has been rewritten around the official TypeScript plugin Typescript is awesome, period. TypeSc

翻译:打造基于Sublime Text 3的全能python开发环境

原文地址:https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/ 原文标题:Setting Up Sublime Text 3 for Full Stack Python Development 翻译:打造基于sublime text 3的全能Python开发环境 Sublime Text 3 (ST3) is lightweight, cross-platfo

最好的Sublime Text插件集合

阅读目录 WebInspector Emmet Git GitGutter & Modific Sublimall AllAutocomplete SublimeREPL DocBlockr Floobits AutoFileName ColorPicker PlainTasks MarkdownEditing Finally WebInspector Amazing tool for debagging JavaScript, the full-fledged inspector of a c

Sublime Text 有哪些使用技巧

1. 更改变量名的几种方法&lt;img src="https://pic4.zhimg.com/d93cf0e8987e0117f3a3187cfe8e53fb_b.jpg" data-rawwidth="153" data-rawheight="46" class="content_image" width="153"&gt;这种情况下该如何快速选中正确的内容?第一种方法:让 Cmd-D

转:Sublime Text 2 实用快捷键[Mac OS X]

转: http://lucifr.com/2011/09/10/sublime-text-2-useful-shortcuts/ Sublime Text 2 实用快捷键[Mac OS X] lucasfais 总结了一些非常实用的 Sublime Text 2 快捷键,Lucifr 将它们翻译成了中文,以方便查阅. 注意:修饰键(如?)后跟多个按键的情况表示在按住修饰键的情况下依次按下相应键. 打开/前往 ?T 前往文件 ??P 前往项目 ?R 前往 method ??P 命令提示 ?G 前往

Sublime Text 快捷键的使用

Sublime Text 快捷键的使用 快捷键列表(Shortcuts Cheatsheet) 我把本文出现的Sublime Text按其类型整理在这里,以便查阅. 通用(General) ↑↓←→:上下左右移动光标,注意不是不是 KJHL ! Alt:调出菜单 Ctrl + Shift + P:调出命令板(Command Palette) Ctrl + ` :调出控制台 编辑(Editing) Ctrl + Enter:在当前行下面新增一行然后跳至该行 Ctrl + Shift + Enter