The DocBlockr package provides creation and code completion of comment blocks that is similar to the default behavior found in other IDEs. Highlighting trailing spaces is very helpful, so install the TrailingSpaces package which does just that. The default file management UI in Sublime Text is bizarre, to say the least. Type the package name and then select it from the list.Įven if you never install another package, install SideBarEnhancements.Once installed Package Control provides the Preferences -> Package Control and Preferences -> Package Settings options in the Sublime Text menu. You'll find instructions at the Package Control site that explains how to do this. This involves cut and paste of Python code into the Sublime Text console. The next step is to install the Package Control system, as it isn't a part of the Sublime Text baseline. "trim_trailing_white_space_on_save": true Set to true to removing trailing white space on save Set to true to insert spaces when tab is pressed The number of spaces a tab is considered equal to Columns in which to display vertical rulers ASCII, UTF-8 and UTF-16 encodings will be automatically detected. The encoding to use when the encoding can't be determined automatically. Set to true to ensure the last line of the file ends in a newline white space within the selection, and "all" to draw all white space Set to "none" to turn off drawing white space, "selection" to draw only the Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and Determines what character(s) are used to terminate each line in new files. My user settings usually end up looking much like this: Don't edit the default settings - you can, but it's not the best of plans. Copy the settings you want to change from the default settings into your user settings. Note that in OS X the preferences menu is under the Sublime Text top level menu, which is not the case for Windows or Linux. Open up Preferences -> Settings - Default and Preferences -> Settings - User. Note that I'm using add-apt-repository here (because I'm too lazy to edit the sources list by hand), which is provided in the python-software-properties package:Īpt-get install python-software-propertiesĪdd-apt-repository ppa:webupd8team/sublime-text-3 If on Ubuntu, you can instead just add a repository and install Sublime Text via apt-get. The straightforward approach to installation is to head off to the Sublime Text website and download Sublime Text 3 for your OS. So this seems like a good time to set out a brief post to document my Sublime Text 3 setup for Javascript development. I'm a late adopter and it has taken a while for the package ecosystem to get up to speed, but here I am. I've been using Sublime Text 2, but the time has come to move on up to Sublime Text 3. I prefer to manage Git from the command line, for example, and keep that distinct from the IDE. I like to have basic forms of code navigation, such as search and definition lookup, syntax highlighting, automatic linting, a bare minimum of code completion, and a few formatting helpers such as whitespace management, but beyond that I don't even tend to integrate version control into my development environment. Sublime Text has been my IDE of preference for the past year or so after tiring of Eclipse: there is little of the feature set of a heavyweight IDE like Eclipse that I actually use on a regular basis nowadays.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |