Sublime Text Editor shortcuts and Features for Mac
4 min read
Goto Anything
Use Goto Anything to open files with only a couple of keystrokes, and instantly jump to symbols, lines, or words.
Triggered with Ctrl+P, it’s possible to:
Type a part of a file name to open it.
Type @ to leap to symbols, # to look within the file, and: to travel to a line number.
These shortcuts are often combined, so [email protected] may take you to a function read_file within a file text_parser.py. Similarly, tp:100 would take you to line 100 of an equivalent file.
Goto Definition
Using information from syntax definitions, Sublime Text automatically generates a project-wide index of each class, method, and performance. This index powers Goto Definition, which is exposed in three different ways:
A popup is displayed when hovering over a logo
Pressing F12 when the caret is on a logo
The Goto Symbol in Project functionality
Symbol indexing is often customized on a per-syntax basis via configuration files, allowing users to tailor the feature to their needs.
Command Palette
The Command Palette holds infrequently used functionality, like sorting, changing the syntax, and changing the indentation settings. With just a couple of keystrokes, you’ll look for what you would like, without ever having to navigate through the menus or remember obscure key bindings.
Show the Command Palette with Ctrl+Shift+P.
Multiple Selections
Make ten changes at an equivalent time, not one change ten times. Multiple selections allow you to interactively change many lines directly, rename variables with ease, and manipulate files faster than ever.
Try pressing Ctrl+Shift+L to separate the choice into lines and Ctrl+D to pick the subsequent occurrence of the chosen word. to form multiple selections with the mouse, take a glance at the Column Selection documentation.
Powerful API and Package Ecosystem
Sublime Text features a powerful, Python API that permits plugins to reinforce built-in functionality.
Package Control are often installed via the command palette, providing simple access to thousands of packages built by the community.
Customize Anything
Key bindings, menus, snippets, macros, completions, and more – almost everything in Sublime Text is customizable with simple JSON files. this technique gives you flexibility as settings are often specified on a per-file type and per-project basis.
Split Editing
Get the foremost out of your screen monitor with split editing support. Edit files side by side, or edit two locations within the one file. you’ll edit with as many rows and columns as you would like . cash in of multiple monitors by editing with multiple windows, and using multiple splits in each window.
Take a glance at the View
▶ Layout menu for split editing options. To open multiple views into the one file, use the File
▶ New View into File menu item.
Cross-Platform
Sublime Text is out there for Mac, Windows, and Linux. One license is all you would like to use Sublime Text on every computer you own, regardless of what OS it uses.
Sublime Text uses a custom UI toolkit, optimized for speed and wonder while taking advantage of native functionality on each platform.
Sublime Text Editor Shortcuts (MAC)
Editing | |
---|---|
Cut line | ⌘ + X |
Insert line after | ⌘ + ↩ |
Insert line before | ⌘ + ⇧ + ↩ |
Move line/selection up | ⌘ + ⌃ + ↑ |
Move line/selection down | ⌘ + ⌃ + ↓ |
Select line – Repeat to select next lines | ⌘ + L |
Select word – Repeat to select next occurrence | ⌘ + D |
Select all occurrences of current selection | ⌃ + ⌘ + G |
Extra cursor on the line above | ⌃ + ⇧ + ↑ |
Extra cursor on the line below | ⌃ + ⇧ + ↓ |
Jump to closing parentheses Repeat to jump to opening parentheses | ⌃ + M |
Select all contents of the current parentheses | ⌃ + ⇧ + M |
Move to beginning of line | ⌃ + A |
Move to beginning of text on line | ⌘ + Left |
Move to end of line | ⌃ + E, ⌘ + Right |
Delete from cursor to end of line | ⌘ + K, ⌘ + K |
Delete from cursor to start of line | ⌘ + K + ⌫ |
Indent current line(s) | ⌘ + ] |
Un-indent current line(s) | ⌘ + [ |
Duplicate line(s) | ⌘ + ⇧ + D |
Join line below to the end of the current line | ⌘ + J |
Comment/un-comment current line | ⌘ + / |
Block comment current selection | ⌘ + ⌥ + / |
Redo, or repeat last keyboard shortcut command | ⌘ + Y |
Paste and indent correctly | ⌘ + ⇧ + V |
Select next auto-complete suggestion | ⌃ + Space |
Soft undo; jumps to your last change before undoing change when repeated | ⌃ + U |
Column selection up | ⌃ + ⇧ + Up |
Column selection down | ⌃ + ⇧ + Down |
Wrap Selection in html tag | ⌃ + ⇧ + W |
Delete current line of cursor | ⌃ + ⇧ + K |
Navigation/Goto Anywhere | |
Quick-open files by name | ⌘ + P or ⌘ + T |
Goto symbol | ⌘ + R |
Goto word in current file | |
Goto line in current file | ⌃ + G |
General | |
Command Palette | ⌘ + ⇧ + P |
Show/hide Console | ⌃ + ` |
Toggle fullscreen mode | ⌃ + ⌘ + F |
Toggle distraction-free mode | ⌃ + ⇧ + ⌘ + F |
Toggle side bar | ⌘ + K, ⌘ + B |
Show scope in status bar | ⌃ + ⇧ + P |
Find/Replace | |
Find | ⌘ + F |
Replace | ⌘ + ⌥ + F |
Find in files | ⌘ + ⇧ + F |
Scrolling | |
Scroll down one page | ⌃ + V |
Center current line vertically in page | ⌃ + L |
Scroll to end of file | ⌘ + Down |
Scroll to start of file | ⌘ + Up |
Tabs | |
Open last closed tab | ⌘ + ⇧ + t |
Jump to tab in current group where num is 1-9 | ⌘ + [NUM] |
Jump to 10th tab in current group | ⌘ + 0 |
Cycle left through tabs | ⌘ + ⇧ + [ |
Cycle right through tabs | ⌘ + ⇧ + ] |
Cycle up through recent tabs | ^ + Tab |
Cycle down through recent tabs | ⇧ + ^ + Tab |
Split window | |
Revert view to single column | ⌘ + ⌥ + 1 |
Split view into two columns | ⌘ + ⌥ + 2 |
Split view into three columns | ⌘ + ⌥ + 3 |
Split view into four columns | ⌘ + ⌥ + 4 |
Set view to grid (4 groups) | ⌘ + ⌥ + 5 |
Jump to group where num is 1-4 | ⌃ + [NUM] |
Move file to specified group where num is 1-4 | ⌃ + ⇧ + [NUM] |
Bookmarks | |
Toggle bookmark | ⌘ + F2 |
Next bookmark | F2 |
Previous bookmark | ⇧ + F2 |
Clear bookmarks | ⇧ + ⌘ + F2 |
Text manipulation | |
Transform to Uppercase | ⌘ + K, ⌘ + U |
Transform to Lowercase | ⌘ + K, ⌘ + L |
Clip text upwards / downwards | ⌘ + ⌃ + up, ⌘ + ⌃ + down |
sublime shortcuts for windows click here
Download sublime Click Here
1 thought on “Sublime Text Editor shortcuts and Features for Mac”