If you need to cut/copy the entire line, simply press ⌘ + X / ⌘ + C. Cutting / Copying Entire Lines ⌘ + X / ⌘ + C ( CTRL + X / CTRL + C on Windows) Now that you are aware of the multiple ways you can highlight text in Sublime, let's have a look at text manipulation. All text within the nearest, (), "", or '' will be selected (including the symbols themselves). If you prefer to expand that selection to scope, you can go for ⇧ + ⌘ + SPACE (or ⇧ + CTRL + SPACE on Windows). This shortcut will quickly select the entire block of text within a set of or (but not the brackets themselves). Expand Selection to Brackets ⇧ + ⌃ + M ( ⇧ + CTRL + M on Windows) Tip: If you need to edit the beginning of each line, you can easily jump to the beginning by pressing ⌘ + ←. Place a Cursor at the End of Each Line Selected ⇧ + ⌘ + L This is very useful when you need to quickly edit lists. You can then modify all lines simultaneously. This command will break a multi-line selection and add a cursor at the end of each line. Place a Cursor at the End of Each Line Selected ⇧ + ⌘ + L ( ⇧ + CTRL + L on Windows) Sublime will place the cursor at the beginning of the line immediately below. To select the entire line, ⌘ + L is your friend. Select the Entire Line ⌘ + L ( CTRL + L on Windows) You can then make multiple edits in a single take. To take advantage of the powerful Multi-Selection feature, hold ⌘ and use the mouse to add multiple cursors. Make Multiple Selections ⌘ + CLICK ( CTRL + CLICK on Windows) This will also select every instance for easy editing.Ī handy solution when you know such words are present somewhere in the document, but you can't find them right away. Then, type the word you would like to select in the document and hit ⌥ + ↩. First, press ⌘ + F to open the "Find" bar at the bottom. Select All Instances ⌃ + ⌘ + GĪlternatively, you can use "Find". This command is aptly named "Quick Find All". If you're certain that you want to select all identical blocks of text in the document, ⌃ + ⌘ + G will get the job done much quicker than by pressing ⌘ + D multiple times. Select All Instances of the Same Word ⌃ + ⌘ + G ( Alt + F3 on Windows) You will still need to press ⌘ + D to highlight the instance first, but you can then choose to ignore it by following up with ⌘ + K. If you would like to skip one of the instances, there is another nifty keyboard shortcut to consider: ⌘ + K. Select Multiple Instances of the Same Word ⌘ + D With the help of multiple cursors, you can then easily change every highlighted instance in a single take. Sometimes, I use this shortcut to simply highlight a word, but if you press this shortcut multiple times, it will look for the next instance of the same word and select it. Select Multiple Instances of the Same Word ⌘ + D ( CTRL + D on Windows)Īs soon as you type ⌘ + D, the entire word will be selected. Below you can find some of the best ways to quickly select text. Quick Text SelectionĪs mentioned in the introduction, Sublime is extremely powerful when it comes to selecting text, due to the multi-selection feature. If you have a hard time memorizing new shortcuts, have a look at part 1 of our series for some keyboard-related tips. Keyboard ShortcutsĪs expected from a competent text editor, Sublime comes with a plethora of keyboard shortcuts that you should learn and take advantage of. I will also list some of my favorite themes and packages. Today I will share the most essential commands to quickly get things done and some customization you should look into. I find it great for writing down quick thoughts. This enables ST to exit immediately without any prompts, preserving all changes to the document and even unsaved files for the next time the editor is launched. "Hot Exit" is another feature worth mentioning and one of my favorites in Sublime. Extensibility: thousands of plugins (known as packages in the ST world) have been developed by the community, providing extra features and further customization depending on your needs.Performance: with lightning-fast startup time, Sublime can handle files with thousands of lines without any hiccups.Multi-Selection: with the power of multiple selections and cursors, mass editing can be easily performed.Here are some of its most noteworthy features: Whoops.Sublime Text, currently in version 4, was released in 2008 and quickly took the world by storm. My problem was that I was searching for "keyboard shortcuts" instead of "Key Bindings". Copy and paste the ones you want to edit into "Preferences" > "User Key Bindings" to and change to your hearts content. Click "Preferences" > "Default Key Bindings" to view them. They are called "Key Bindings" and every single one of them is configurable from within a text file. I should have dug more before I asked this.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |