Here I made a very quick and easy example, it converts a vertical line of data into an array: Well you might think there must be a better way! You bet there is! "Macros" are designed to handle this kind of nasty situation and save you from all that boring work. It would be hundreds of shortcuts you need to press and each time you are just repeating the exact same sequence of keys. Imagine having to do this for each line of a table, and for every single spreadsheet you have to work on. It takes about 8 shortcuts to finish each process, that's including the first paste action and then adding a space character after each comma. Using shortcuts, the best way I can come up with to accomplish this would be like so: Tasks like these are pretty common when you need to copy a line of data from spreadsheets. at least that's how I feel when I need to covert a vertical line of data into an array. That's it! You're done! Super easy right? Macrosĭo you always feel frustrated by repeating the same tedious task again & again? Hmm. Note the extension is ".sublime-project" and you may want to put all your project files in one central location.Then go to the menu, click "Project" -> "Save Project As" First drag some folders and files that you want to open into Sublime.Saving and using your projects is very straightforward. Additionally, it saves your previous location so you can just pick up where you left off. It saves a lot of time that you'd normally waste finding different folders and then dragging and dropping to your Sublime each time. Using "Project" feature to organize your projects is super easy and handy. If you can not find it, go to "Sublime" - > "Preferences" -> "Browse Packages", and create a folder called "User" if there isn't one already, and save it there. Now save it, but keep in mind putting it in the correct location is important! Uncomment this line to set up a tab trigger for the shortcut.Note: The dollar sign "$" allows you to use tab key to jump between, so set it wisely! Replace the default line with your snippet, the default one looks like this:.To create your own snippet, go to "Tools" => "New Snippet", an interface to create your own snippet will pop up, it would look something like this: Like the one I demonstrated, it is pre-made from a plugin called Html Page Snippets, and command docjq will create a boiler template for a Html page that contains bootstrap and jQuery. This is definitely the feature you will use the most! To start using snippets, you can either create your own snippets according to your needs or download some ready-made snippets created by others to fulfill some generic coding needs. To give a quick peek what a snippet looks like: ![]() ![]() In this article we will be introducing "Snippets", "Project" and "Macros".īack when i introduced Sublime editor to my friends,"Snippets" was among the first few features which really intrigued them. I have seen many people who are familiar with the plugins but not with these cool built-in features. There are lots of good tutorials on Sublime shortcuts and plugins on the internet, but I feel there should be more about these fundamental features. I will start with some of the most basic features that come with fresh installation of Sublime. Use of these plugins will dramatically reduce the amount of tedious tasks you have to perform, and make your worktime really fun. In this blog, I will cover some of my favorite Sublime features.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |