Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97400

Automatic TypeScript `import` formatting in Visual Studio Code

$
0
0

I'm working on an Angular 9 project in Visual Studio Code. When I type the name of an existing TypeScript class, I press Ctrl + . to import it automatically. How can I configure the auto-import functionality to use double quotes and relative paths instead of single quotes and absolute paths?

Example:

  • I get this: import { RefreshService } from 'src/app/services/refresh.service';
  • I want this: import { RefreshService } from "../../services/refresh.service";

Thanks!


Viewing all articles
Browse latest Browse all 97400

Trending Articles