CoffeeScript
PhpStorm integrates with the CoffeeScript compiler, recognizes *.coffee
files, and provides full range of coding assistance without any additional steps from your side. CoffeeScript files are marked with .
Before you start, download and install the Node.js runtime environment.
Coding assistance
CoffeeScript support includes:
- Code completion for keywords, labels, variables, parameters and functions.
- Error and syntax highlighting.
- Code formatting and folding.
- Refactoring: see Rename Refactorings, Move Refactorings, and Refactoring JavaScript for details.
- Code generation
- Generating code stubs based on file templates during file creation.
- Ability to create line and block comments (Ctrl+//Ctrl+Shift+/).
- Navigation through source code
- Navigating with Structure View.
- (Ctrl+B).
- (Ctrl+Alt+B) from overridden method / subclassed class.
- (Ctrl+Shift+Alt+N.
- Compiling to JavaScript for further running, debugging, and testing, see Running CoffeeScript and Debugging CoffeeScript.
- Executing CoffeeScript files involves:
- Ability to preview results of CoffeeScript files compilation to JavaScript.
- Ability to launch CoffeeScript files from the context menu.
- Run/debug configuration for Node.js includes the ability to use CoffeeScript plugin.
Last modified: 29 March 2018