{"id":270523,"date":"2018-05-11T07:40:13","date_gmt":"2018-05-11T14:40:13","guid":{"rendered":"http:\/\/css-tricks.com\/?p=270523"},"modified":"2021-11-11T06:18:07","modified_gmt":"2021-11-11T14:18:07","slug":"turn-sublime-text-3-into-a-javascript-ide","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/turn-sublime-text-3-into-a-javascript-ide\/","title":{"rendered":"Turn Sublime Text 3 into a JavaScript IDE"},"content":{"rendered":"\n
Sublime Text<\/a> is one of the most popular editors<\/a> for web development and software development in general. It\u2019s very smooth and fast compared to other editors (being written in C++ helps that speed). Sublime also has tons of plugins you can find through Package Control<\/a>.<\/p>\n\n\n\n But it\u2019s only a text editor and not an IDE<\/abbr><\/strong>. An IDE<\/abbr> is a software application that provides comprehensive facilities to computer programmers for software development. In fact, Sublime doesn\u2019t offer features like debugging tools, built-in tools for compiling and running applications, intelligent code suggestions, or code refactoring. Instead it offers a set of API<\/a>s you can use to extend it. Here\u2019s an introduction to the JavaScript Enhancement<\/a> plugin (my own creation) that makes Sublime a bit more IDE<\/abbr>-like for JavaScript development.<\/p>\n\n\n\n\n\n\n It is a plugin for Sublime Text 3 that offers a lot of features useful for creating, developing, and managing JavaScript projects. The most important ones are:<\/p>\n\n\n\n Several other features can be found on the Wiki page<\/a>.<\/p>\n\n\n\n Most of the features are implemented using Flow<\/a> under the hood, which is a static typechecker<\/strong> for JavaScript created by Facebook (if you know TypeScript<\/a>, it is quite similar). The main objective of this plugin is to turn Sublime Text 3 into a JavaScript IDE<\/abbr><\/strong>. It is in active development and it will include other features over time.<\/p>\n\n\n There are two ways to install it. The simplest one is through Package Control<\/a>, the other one is to install it manually following these simple steps<\/a>.<\/p>\n\n\n Because Flow only works on 64-bit systems, this plugin supports:<\/p>\n\n\n\n Sublime Text has its own autocomplete feature, but it lacks power, making it not nearly as useful as it could be. With this plugin, you will get autocompletion based on the current context<\/strong>, like any other IDE<\/abbr>. For example, you will get completions from your imported classes defined in other files, such as properties and methods.<\/p>\n\n\n\n Furthermore, the completions list will also contain info about variables type<\/strong> and functions signature<\/strong> in order to get a quick overview of them.<\/p>\n\n\n\n Here\u2019s how that works with the plugin:<\/p>\n\n\n\nWhat is the JavaScript Enhancement Plugin?<\/h3>\n\n\n
Installation<\/h3>\n\n\n
Requirements<\/h3>\n\n\n
Supported Systems<\/h3>\n\n\n
Smart Autocomplete<\/h3>\n\n\n