Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
angelozerr edited this pageJun 30, 2017 ·22 revisions

Editor features

typescript.java uses theJSDT Editor to supportTypeScript,JSX, (andJavaScript with Salsa) by consummingtsserver coming from TypeScript bundle.

Completion

TypeScript completion

Here a demo with TypeScript completion:

TypeScript completion demo

Templates

Templates are available:

  • for TypeScript:

TypeScript Template

  • for React

React Template

You can import, update templates withJavaScript / TypeScript / Editor / Template preferences page:

Template Preference Page

Hover

TypeScript hover

Hyperlink

TypeScript hyperlink

Open Implementation

SinceTypeScript 2.1.0, TypeScript providesOpen implementation feature that you can use withCtrl+T:

TypeScript Open Implementation

Code Folding

TypeScript editor content can be folded. For having good performance, the folding strategy doesn't use the TypeScript AST (to fold function, etc) but fold the code according the indentation (like VSCode):

TypeScript Code Folding

Formatting

You can format your TypeScript code withCtrl+Shift+F or use the menuSource/Format. The formatting behaviour is done by callingformat command of the tsserver. If you find a bug, with formatting, please check with VSCode if it has the same problem.

Preferences

By default, editor and formatter options uses the default config of tsserver. But if you wish you can configure editor and formatter options for TypeScript editor withTypeScript / Editor / Formatter project preferences:

TypeScript Formatter Preferences

Mark Occurrences

When you select a variable, method, type, etc, TypeScript editor is able tomark occurrences:

Mark Occurrences

Please note thatmark occurrences is done asynchronously in order to avoid freezing Eclipse. It means that with a big project, themark occurrences doesn't work as long as tsserver is not initialized.

Find References

You can find references (for a method, property, etc) in project withCtrl+Shift+G or use the menuReferences/Project

Find References In Project

Please note that today it exists a bug when tsserver is not started, search returns none result. Please doCtrl+Shift+G several times by waiting fix forissue 46.

Outline

Outline View

StandardOutline is filled with TypeScript elements:

TypeScript Outline

Please note that this outline is filled asynchronously to avoid freezing Eclipse. For large project, this outline can takes time.

Link With Editor

Link With Editor (which is available by default) gives the capability to synchronize the cursor of the active TypeScript editor with the outline to select the well tree item:

TypeScript Outline Link With Editor

Collapse All

Collapse All action gives the capability to collapse all the tree of the outline:

TypeScript Outline Collapse All

Quick Outline

You can search quickly classes, methods, etc with theQuick Outline available with withCtrl+O or use the menuNavigate/Quick Outline.

TypeScript Quick Outline

Please note that this quick outline share the same TypeScript elements than Outline. It is filled when Outline is filled.

Validation

As you type

By default you can see TypeScript, JavaScript errors when you are typing :

As you type validation

Problem view

When you activate compile/build on save, you will see problem with TypeScritpt compilation:

TypeScript Problem View

Code fixes

SinceTypeScript 2.1.4, TypeScript providesseveral code fixes

Refactoring

Refactoring

Rename

You can rename TypeScript symbol:

Rename Demo

Refactoring Support

Since TypeScript 2.4.1, tsserver provides a refactoring support which will be improved in each TypeScript version. TypeScript 2.4.1 provides one Refactoring support available only for JavaScript file:

Convert to ES5 class

This refactoring support is available with Menu / Refactoring. In the future we will have more support.

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp