Difference between revisions of "TypeScript"

From WikEmacs
Jump to navigation Jump to search
(Undo revision 47807 by Elvince (talk))
(typescript mode)
Line 1: Line 1:
 
How can we program in TypeScript in Emacs ? Let's dive in.
 
How can we program in TypeScript in Emacs ? Let's dive in.
 +
 +
= Typescript.el - syntax highlighting and indentation =
 +
 +
[https://github.com/ananthakumaran/typescript.el typescript.el] (in MELPA) offers simple syntax highlighting and indentation support. For advanced features, see Tide below.
  
 
= Tide - Typescript Interactive Development for Emacs =
 
= Tide - Typescript Interactive Development for Emacs =

Revision as of 12:56, 10 May 2017

How can we program in TypeScript in Emacs ? Let's dive in.

Typescript.el - syntax highlighting and indentation

typescript.el (in MELPA) offers simple syntax highlighting and indentation support. For advanced features, see Tide below.

Tide - Typescript Interactive Development for Emacs

Tide features:

  • ElDoc
  • Auto complete
  • Flycheck
  • Jump to definition, Jump to type definition
  • Find occurrences
  • Rename symbol
  • Imenu
  • Compile On Save
  • Highlight Identifiers
  • Code Fixes
  • supports jsx files
  • format options via elisp or tsfmt.json
  • works well with js2-mode

It uses tsserver as the backend for most of the features. It writes out a comprehensive log file.