The only TypeScript package you will ever need
TypeScript CSS JavaScript CoffeeScript
Latest commit 1fd660c Oct 23, 2017 @lierdakil lierdakil Merge pull request #1363 from TypeStrong/nuclide-codefix
Support for atom-ide-ui codefix
Permalink
Failed to load latest commit information.
dist Apply codefix changes in reverse to avoid trampling over itself Oct 19, 2017
docs Clean up the docs and revert -beta naming Mar 20, 2017
grammars Remove the Angular specific template rule Oct 11, 2017
images file semantic view complete Jul 23, 2015
keymaps Remove conflicting typescript:quick-fix from keymap Jun 28, 2017
lib Apply codefix changes in reverse to avoid trampling over itself Oct 19, 2017
menus add return-to-declaration functionality Feb 15, 2017
scripts Merge pull request #1358 from TypeStrong/update-grammar Oct 11, 2017
settings fix(tsx) prefer `//` comments same as .ts Nov 3, 2015
snippets Merge branch 'master' into use-tsserver Mar 19, 2017
spec Bump the spec timeout (grammar be slow?) Oct 11, 2017
styles Merge branch 'master' into use-tsserver Mar 19, 2017
views Implement basic rename refactor Dec 25, 2016
.gitattributes (otherwise Jason showed up) Jul 10, 2015
.gitignore Remove some old dist files Mar 20, 2017
.prettierrc Put prettier settings in .prettierrc Oct 11, 2017
.travis.yml Also run `npm test` to type check files and formatting Oct 1, 2017
CHANGELOG.md Update changelog Oct 11, 2017
CONTRIBUTING.md updated contribution guide Apr 6, 2017
LICENSE.md initial commit Jun 21, 2014
README.md README rewrite for clarity Oct 17, 2017
npm-shrinkwrap.json Prepare 11.0.10 release Oct 11, 2017
package.json Basic support for nuclide's code actions Oct 17, 2017
pull_request_template.md Update pull_request_template.md Mar 5, 2017
tslint.json Use ES6, use push style linter Dec 3, 2016

README.md

Atom TypeScript

Join the chat at https://gitter.im/TypeStrong/atom-typescript

JavaScript developers can now just open a .ts file and start hacking away like they are used to. No grunt no Visual Studio. Just pure coding.

NOTE: This branch contains a major rewrite (v11) of the atom-typescript plugin that is lighter and faster, but lacks a few major features that you might miss. The previous version is still available in the legacy branch and will continue to receive minor bugfixes, but I wouldn't count on any new developments.

Installation

  1. Install atom.
  2. Install dependencies (see below)
  3. apm install atom-typescript (apm needs git in your path)
  4. Fire up atom. Open a TypeScript file.

Dependencies:

Atom-TypeScript relies on some external packages for providing some of its GUI. You basically have two options.

Option 1: Install atom-ide-ui package.

Option 2: Install the following packages:

  • linter
  • linter-ui-default
  • hyperclick
  • intentions

Additional Notes: Some packages we love.

Reviews

Featured on the TypeScript home page under tools http://www.typescriptlang.org/ and demoed by Anders Hejlsberg.

"I was shocked at how good it felt to poke around on the compiler with it." Jonathan Turner "And guess what, it worked perfectly. Like everything else! Faster than Visual Studio!" Daniel Earwicker "It's a thing of beauty - they had me at 'Type information on hover'. Discovering tsconfig.json support as well was just an enormous bonus." John Reilly "This may be your best option for editing TypeScript at the moment - very nice!" Rasmus Schultz

Add yours!

Features

  • Autocomplete
  • Live error analysis
  • Type information on hover
  • Compile on save
  • Project Context Support (tsconfig.json)
  • Project Build Support
  • package.json Support
  • Goto Declaration
  • Find References
  • Block comment and uncomment
  • Rename refactoring
  • Common Snippets

FAQ

Located online : https://github.com/TypeStrong/atom-typescript/blob/master/docs/faq.md


Feature Details

Auto Complete

Internally using AutoComplete+. Just start typing and hints will show up. Or you can explicitly trigger it using ctrl+space or cmd+space. Press tab to make a selection.

Type information on hover

Just hover

you definitely get the point

Compile on save

When "compileOnSave": true is set in tsconfig.json, Typescript files will be compiled and saved automatically. The compiler does its best to emit something, even if there are semantic errors in the file.

Project Support

atom-typescript supports all the same options the Typescript compiler does as it's using it behind the scenes to do all of the heavy lifting. In fact, atom-typescript will use the exact version of Typescript you have installed in your node_modules directory.

Format Code

Shortcut : ctrl+alt+l or cmd+alt+l. Will format just the selection if you have something selected otherwise it will format the entire file.

Go to Declaration

Shortcut : F12. Will open the first declaration of the said item for now. (Note: some people call it Go to Definition)

Find References

Shortcut shift+F12. Also called find usages.

Refactoring

Rename

f2 to initiate rename. enter to commit and esc to cancel.

Quick Fix

Shortcut : ctrl+enter on a Mac and alt+enter for Windows and Linux when using intentions, alt+a when using atom-ide-ui. Currently available codefixes: https://github.com/Microsoft/TypeScript/tree/master/src/services/codefixes

Contributing

Look at CONTRIBUTING.md for curiosity. We work hard to keep the code as approachable as possible and are highly keen on helping you help us.

Changelog

Breaking changes available online.