ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Flow​IDE

by tptee ST3 MacLinux

IDE-caliber support for Flow in Sublime Text

Details

Installs

  • Total 3K
  • Win 2
  • Mac 2K
  • Linux 594
May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

FlowIDE

Add first-class Flow support to Sublime Text! FlowIDE provides autocomplete, diagnostics, type hints, and jump-to-definition for the Flow static type checker for JS. FlowIDE provides the majority of Flow-related features implemented in Facebook's Nuclide.

Requirements

You'll need Sublime Text build 3070 or greater (tooltip support). Neither FlowIDE nor Flow support Windows.

Usage

Install with Package Control!

FlowIDE features only activate on files with the // @flow or /* @flow */ declarations. It automatically determines the root directory and .flowconfig of the file you're currently working on.

FlowIDE works out-of-the-box if the flow binary is in your PATH (note that your shell PATH may be different from your Python PATH). To fit your needs, you can change the following settings: - flow_path (string): the path to your flow binary. - use_npm_flow (boolean): if true, uses the binary from the npm flow-bin package in the node_modules of your current file's root directory. Using flow-bin's binary will slow down editing features because it is wrapped in a Node script and starts an interpreter on each run. - omit_function_parameters: (boolean) if true, omits the function parameters when autocompleting flow-typed functions. - show_coverage: (boolean) if true, show coverage underlines and status bar text. - show_sublime_autocomplete_suggestions: (boolean) if true, combines the autocomplete suggestions for Flow and Sublime's default suggestions

Diagnostics and Autocomplete

Just works! Autocomplete generates snippets with parameter names when pressing Enter.

Coverage

The status bar shows how many lines of each file are uncovered, and even underlines the lines missing coverage.

Type Hints

Press Command+Option+T (Control+Alt+T) to view the type of the variable or function underneath your cursor.

Jump-to-Definition

Press Command+Option+J (Control+Alt+J) to jump to the definition of the variable, function, or type underneath your cursor.