Sublime Textis one of the most popular editorsfor web development and software development in general. It’s 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.
Several other features can be found on the Wiki page.
Because Flow only works on 64-bit systems, this plugin supports:
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, like any other IDE. For example, you will get completions from your imported classes defined in other files, such as properties and methods.
Furthermore, the completions list will also contain info about variables typeand functions signaturein order to get a quick overview of them.
Here’s how that works with the plugin:
...and without the plugin:
You can set also more options in the
.flowconfigfile (see the official websiteto customize your Flow configuration. For example, if you want to let the Flow server check all files and not just those with
@flow, you need to set the
[options]# all=off by defaultall=true
Instead, like is says on the official website, lint settings can be specified in the
.flowconfig[lints] section as a list of
rule=severitypairs. These settings apply globally to the entire project. An example is:
[lints]# all=off by defaultall=warnuntyped-type-import=errorsketchy-null-bool=off
Lint settings can be specified also directly in a file using
flowlintcomments . For example:
/* flowlint* sketchy-null:error,* untyped-type-import:error*/
Sublime Text doesn’t offer a code refactoring system natively. This is realized with the help of Flow CLI commands in order to get the necessary information. At the moment, this plugin offers various code refactoring features, including:
Some of them can also have an available preview.
If you have any problems, create an issue. Protip: do a quick search first to see if someone else didn't ask the same question before! For small questions, you can use Gitter.
For feature requests, create an issue or use Gitter.