• Stars
    star
    1,129
  • Rank 39,554 (Top 0.9 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The only TypeScript package you will ever need

Project status

As of May, 25th 2022, this project is officially unmaintained.

The last maintainer (me) doesn't have admin access to the repository, and couldn't get the organization owner's attention to get it, so if you'd like to take over, feel free to fork.

  • @lierdakil

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: When updating to v12, make sure language-typescript core package is enabled. We're discontinuing our own grammar in favor of language-typescript. Both are very similar and are basically Microsoft's TextMate grammar repackaged, and there's little reason to bundle our own if there's one available by default.

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. However, I wouldn't count on any new developments for that version.

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
  • Semantic view
  • Block comment and uncomment
  • Rename refactoring
  • Common Snippets
  • Alternative to symbols-view

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.

Semantic View

A bird's eye view of the current file. Use command toggle semantic view. The view updates while you edit the code. You can also click to jump to any portion of the file.

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

Alternative to symbols-view

Atom's symbols-view package only works with ctags. This is obviously unsuitable for TypeScript. Hence, we provide two commands to emulate symbols-view:

  • typescript:toggle-file-symbols
  • typescript:toggle-project-symbols

Both are bound to the same keys as corresponding symbols-view commands by default:

  • ctrl-r and ctrl-shift-r on PC
  • cmd-r and cmd-shift-r on Mac

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.

More Repositories

1

ts-node

TypeScript execution and REPL for node.js
TypeScript
12,395
star
2

typedoc

Documentation generator for TypeScript projects.
TypeScript
7,349
star
3

ts-loader

TypeScript loader for webpack
TypeScript
3,413
star
4

fork-ts-checker-webpack-plugin

Webpack plugin that runs typescript type checker on a separate process.
TypeScript
1,916
star
5

learn-typescript

The complete workshop for picking up TypeScript
TypeScript
692
star
6

tsify

Browserify plugin for compiling TypeScript
JavaScript
339
star
7

grunt-ts

A grunt task to manage your complete typescript development to production workflow
JavaScript
326
star
8

dts-bundle

Export TypeScript .d.ts files as an external module definition
TypeScript
307
star
9

ts-expect

Checks TypeScript types match expected values
TypeScript
193
star
10

ntypescript

Nicer TypeScript for API devs
JavaScript
115
star
11

tsconfig

Resolve and parse `tsconfig.json`, replicating TypeScript's behaviour
TypeScript
102
star
12

typedoc-default-themes

Handlebars
56
star
13

typedoc-site

Website for TypeDoc
TypeScript
37
star
14

grunt-typedoc

Grunt plugin to generate TypeScript docs with TypeDoc
JavaScript
16
star
15

tspms

An abstraction on top TypeScript language service, that let you consume it in the context of a project.
TypeScript
13
star
16

typedoc-auto-docs

An idea from TS Discord to automatically render docs for the ecosystem, similar to docs.rs and doc.deno.land
TypeScript
10
star
17

typescript-compiler-docs

Community docs about typescript's compiler and APIs
9
star
18

atom-typescript-examples

Temporary location of examples for mutual testing
JavaScript
8
star
19

tscs

TypeScript Compiler Services
JavaScript
7
star
20

ts-node-repros

Dockerfile
6
star
21

grunt-ts-clean

Grunt plugin to cleanup TypeScript builds for release.
JavaScript
6
star
22

typedoc-repros

Shell
5
star
23

csproj2ts

Library to parse TypeScript config info from a Visual Studio Project file
TypeScript
5
star
24

fs-fixture-builder

TypeScript
5
star
25

typedoc-action

TypeScript
5
star
26

tsproj

A specification for a file format + Parser Implementation for specifying TypeScript projects
TypeScript
5
star
27

grunt-dts-bundle

Grunt plugin to export TypeScript .d.ts files as an external module definition
JavaScript
4
star
28

typestrong.github.io

Website
HTML
4
star
29

typestrong-compiler

experimental compiler module
JavaScript
3
star
30

discussions

Open organization discussions
3
star
31

ts-node-examples

TypeScript
3
star