![]() This will move your cursor to a new line above your current position. This will get rid of the entire line your cursor is on. This will get rid of the return at the end of the line. This will select the entire line your cursor is on. This will automatically complete an open tag. This is another one that has become second nature for me. I use this one all the time! It wraps your current selection with a tag. If you hit it again, it will select the next instance that word is used. This will highlight the entire word that your cursor is in. I use this more when I’m working remotely on my laptop and screen real estate is an issue. This will paste and indent, automatically applying the correct indention to the pasted text. Similar to Cmd + ], this will indent your entire line of code (or selection) to the right. This will indent your entire line of code (or selection) to left. (I remember it by thinking konvert to upper or lower.) Being the anal retentive programmer that I am, instead of having to delete that text and retype, Cmd + k + l. I can’t tell you how many times I’ve started typing with the CAPS lock on by accident. ![]() This will transform your selected text to all uppercase or all lowercase. The sequence, here, took me a while to “get.” Basically, keep the Cmd key held down the whole time, and then type k (release) l (or u). For example, I might type Ctrl + 2 to jump to the second pane, and then Cmd + 3 to jump to the third tab within that pane. If you’re using this shortcut in conjunction with Cmd + 1 (through 9), the tab numbers restart within each pane. Ctrl + 1 will jump back to the first pane. If you have multiple panes open and numbered them left to right starting with 1, hitting Ctrl + 2 would allow you to jump to the second pane. If you numbered your tabs, left to right starting with 1, hitting Cmd + 2, would allow you to jump to the second tab. This will re-open the last tab that you closed. Within a PHP file, you can easily find a function. Within a CSS or SASS file, you can easily find a class or id tag. This allows you to easily find and jump to a piece of code within the current file. This could be a command from a plugin or extension or a command you might find in the menus (but don’t want to use your mouse). Except, instead of opening files, it allows you to run commands. Similar to Cmd + t, this will open a panel at the top of my screen. This opens a panel at the top, type the name (or part of a name) of a file within your project, hit and it will open. I’ve included the ones I’ve found to be the most useful that I find myself using on a daily basis. I don’t know about you, but I can only remember so many at a time. You may want to look into folder_exclude_patterns within your preferences file if you want to omit certain results from your search. I only make use of show context and use buffer. Lastly, you’ll see buttons to the left of your search fields that allow to toggle regular expressions, case sensitive, whole word, show context, and use buffer. Within the “Find Results” screen, you can double click on the file name and it will take you to that particular file - or you can click on the line of code and it will take you to that spot specifically. Within the “where” field, I usually include “assets/src/scss/“ so that the results are only within my SASS directory. If you want to limit the search to the current project type within the “Where” field.Įver since I started splitting my SASS into multiple files, this feature has become invaluable. You can also limit your search to certain files and folders. I can pull the top of the file up in one pane and put the bottom of the same file in another pane.Ĭmd + Shift + F will open the project search pane. I’ve also found this feature useful, if I’m working with a longer file and constantly scrolling up and down. I’ll usually keep my HTML on the left and my SCSS and JS on the right. If this excites you, check out the Orgami plugin (also listed below). I prefer 2 columns, but you could have rows instead. You can have multiple panes within Sublime. You can Cmd + Click in multiple places within your file to create multiple cursors or Alt + Drag Click to select multiple lines. Some of my favorite features are actually native to the app: ![]() To make it easier for you, I wanted to include a brief table of contents, in case you want to jump to a particular section: This post is L-O-N-G (it’s a brain dump!).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |