Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

383
Views
VSCode: Automatically open .html files in one window and .ts in the other

I'm writing Angular2 in VSCode. I split the editor window in two and keep all .html files on the right and all .ts files on the left.

It would be great to automate this, so that when I double click in the file browser the file is opened in the 'type appropriate' window split.

How can I configure or extend VSCode to do this?

enter image description here

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I couldn't live without the extension angular2-switcher which adds the following navigations

  • Alt + U - Go to .ts
  • Alt + I - Go to .css
  • Alt + O - Go to .html
  • Alt + P - Go to .spec.ts

* Hold Shift on mac

Hopefully someday it'll support split screen too

about 4 years ago · Santiago Trujillo Report

0

You can't do that today, unless you create a new extension.

But, with file-ext-switcher extension you can open the related file using a keybinding, which is great. It worth take a look.

about 4 years ago · Santiago Trujillo Report

0

You can link auto html opening for component ts file in the settings menu like this:

settings example

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!