During development, add Ember.js specific extensions to your code editor to expand functionality. Below is a list of some of the extensions available, many of which are created and maintained by the developer community:
Visual Studio Code
Visual Studio Code is a code editor optimized for building and debugging modern web applications. Visual Studio Code is one of the most popular text editors among Ember developers.
Stable Ember Language Server - Stable Ember Language Server is a stable, full-featured language server. Its name comes from its history as a fork of Ember Language Server and the efforts to keep up with changes in Ember.
Ember JS (ES6) and Handlebars code snippets - Enables Ember.js and Handlebars snippets to let you to type less and code more.
EditorConfig for Visual Studio Code -
Attempts to override user/workspace settings with settings found in .editorconfig
files.
The .editorconfig
file helps developers define
and maintain consistent coding styles between different editors and IDEs.
Glimmer Templates Syntax - Syntax formatting for glimmer templates.
VSCode Glimmer - Provides embedded template highlighting support.
Prettier - Prettier is an opinionated code formatting tool. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. Prettier supports Handlebars, Ember and Glimmer out of the box.
Vim and Neovim
Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X. Alternatively, Neovim is a hyper-extensible Vim-based text editor. Both editors share a range of cross-compatible extensions listed below.
You'll want to remove any linter / completion manager you currently have installed
(or disable them for .js
, .ts
or .hbs
files), and follow the install guides for the following packages:
ember.vim - Shortcuts to navigate related files with Ember.js projects.
vim-ember-hbs - Add Ember template syntax highlighting and indentation to Vim.
Ember Tools - Various tools for working with Ember.js projects.
Conquer for Completion (COC) for Neovim - An Intellisense engine which takes control over all linting, hinting, and language-server integration.
coc-ember - Ember.js language server extension including useful configuration instructions.
nvim-treesitter -
high-fidelity static highlighting. With ensure_installed = { 'glimmer' }
, this
also includes support for embedded templates in JavaScript and typescript.
To get embedded template highlighting without tree-sitter (and too much config to include here):
Atom
Atom is hackable text editor for the 21st Century.
atom-ide-ember - Atom package to use the Ember Language Server.
emberjs-atom - Atom autocomplete and snippets for Ember.js.
atom-ember-snippets - Ember.js ES6, Ember Data & Handlebars snippets for Atom editor.
language-ember-htmlbars - Add Ember template syntax highlighting and indentation to Atom
Sublime Text
A sophisticated text editor for code, markup and prose.
ember-cli-sublime-snippets - Ember CLI snippets for Sublime Text 3.
ember-component-template-split-view - Super simple Sublime Text plugin that will let you open corresponding template or route files with Ember.js components.