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: And if it's not in a plug-in, then you can handle it with the File Watchers.This post is L-O-N-G (it’s a brain dump!). Most external tools/tasks can be handled with WebStorm. It's also recommended to more explicitly represent your workflow within WebStorm itself. It should be noted though that this is easily remedied by going to File/Settings/System Settings and checking the "Synchronize Files on frame or editor tab activation" option. You usually remember to do that anyway after you've been trying to track down a bug on a line of JavaScript that Webstorm says doesn't exist for the last two hours. There's a feature in the context-menu for manually synchronising directories with their real filesystem equivalent, but this shouldn't be necessary and is annoying to do. If you have an external tool acting on your project (such as a gulp task or a third-party Git client), what you see in the file browser or in open tabs becomes out-of-date. The Java wrapper around the filesystem doesn't actively watch for file changes (by, for example, using the fsevents api on OS X), and as a result can become easily desynchronised from the actual filesystem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |