Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm & TypeScript: how to navigate to *.ts instead of *.d.ts

When using WebStorm / PhpStorm / IntelliJ IDEA...

When I navigate to a file it always pulls up the *.d.ts type definition file instead of the source *.ts

How can I go right to the source *.ts?

I tried marking the *.d.ts files as text, or registering the *.d.ts pattern under the "Text" file type. The icons change on these files but the navigation still ends up on the *.d.ts file.

If I include *.d.ts under the file types to ignore (in Settings), they won't get recognized for things like version control -- I just want to affect navigation.

This seems like it would be a problem that would affect ALL typescript users... what am I missing?

See: Related but different issue (I want *.ts not *.js)

.

UPDATE (Mar-20-2017):

As of WebStorm 2017.1, registering the *.d.ts pattern under the "Text" file type WORKS for me. Problem solved!

.

like image 699
JoshuaDavid Avatar asked Feb 23 '17 17:02

JoshuaDavid


People also ask

What is WebStorm used for?

WebStorm is an integrated development environment for coding in JavaScript and its related technologies, including TypeScript, React, Vue, Angular, Node. js, HTML, and style sheets.

Is WebStorm free?

WebStorm includes an evaluation license key for a free 30-day trial. WebStorm includes an evaluation license key for a free 30-day trial. WebStorm includes an evaluation license key for a free 30-day trial.

Is WebStorm better than VS Code?

WebStorm is generally more efficient at refactoring and testing JavaScript and JavaScript-based code (such as TypeScript). Refactoring optimizes code for efficiency, while unit testing ensures product quality. VS Code still provides these features — but they aren't tailored to JavaScript.

Is WebStorm a good IDE?

WebStorm is one of the most well-known and profound JavaScript IDEs. It's developed by JetBrains - a company with years of experience in creating powerful IDEs for a variety of programming languages.


1 Answers

Please vote for WEB-23618 to be notified on any progress

like image 194
lena Avatar answered Sep 30 '22 01:09

lena