Good day, dear habravchane. Many use the great Sublime Text editor, which has become popular due to its simplicity, flexibility / customization, and a huge number of plug-ins. I want to share with you, in my opinion, the most useful shortcuts when working with Sublime.

Jump by fragments
Win / Linux: CTRL + RMac: CMD + RProbably the most useful keyboard shortcut to save your time. The content of the document is divided into specific fragments (functions, HTML tags or CSS styles). The transition occurs when you select the corresponding fragment in the pop-up window.
')
File navigation
Win / Linux: CTRL + PMac: cmd + pMost developers have to switch between different files many times. HTML and CSS or PHP and JavaScript ... These shortcuts simplify these steps. You can also switch tabs using "
CMD+ALT+Left/Right Arrow
" and "
CTRL+Pagedown/Pageup
" for OSX and Windows, respectively.
Highlight current word
Win / Linux: CTRL + DMac: CMD + DIt is very convenient to select words by double-clicking the left mouse button. But it is even more convenient and faster to do it on the keyboard, without the help of a touchpad or mouse. And with the combination "
CMD+L
" or "
CTRL+L
" the current line is highlighted.
Split screen
HorizontallyWin / Linux: ALT + Shift + 2/3/4/5Mac: CMD + ALT + 2/3/4/5UprightWin / Linux: ALT + Shift + 5/8/9Mac: CMD + ALT + Shift + 1/2/3Instead of constantly switching between files, Sublime makes it possible to divide the workspace vertically or horizontally into several parts. Very usable. And using Num1 in the above combinations, we return a single screen.
Bookmarks
Win / Linux: CTRL + F2Mac: CMD + F2In the process of writing code, you have to "experiment", change some data and whole lines to get the desired result. Remembering the line numbers where changes occurred is quite difficult. But in sublayme there are bookmarks that are added by these shortcuts. And switch between them using "
F2
" or "
Shift+F2
".
Merge and rearrange rows
Win / Linux: CTRL + Shift + Up / DownMac: CMD + CTRL + Up / DownIt is rarely necessary to relocate strings in places, but this method is very convenient. Shortcuts "
CMD+J
" or "
CTRL+J
" combine strings.
Combined cursor
Win / Linux: CTRL + ALT + Up / DownMac: TRL + Shift + Up / DownHonestly, I have not been able to use this function, but I am sure that there is a lot of potential in the “combined cursor” and many will find use for this feature. The cursor is distributed over multiple lines and it becomes possible to edit them simultaneously.
Instant search and replace
Win / Linux: ALT + F3Mac: CMD + CTRL + GThanks to this life hacking, we forget about search and replace (find what, raplace with, replace next / all). By selecting specific text and pressing the necessary keys, Sublime finds all matches and creates a “merged cursor” on all lines where there are matches.
String search
Win / Linux: CTRL + GMac: CTRL + GClose current HTML tag
Win / Linux: ALT +./ Linux: cmd + alt +.Line selection
Mac: cmd + lSources:
10 keyboard shortcuts to become a true Sublime Text ninja10 Sublime text shortcuts that every developer should knowMany thanks to all for your attention.