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

192
Views
Can I set VSCode as default editor for specific file type through extension?

I am currently developing a VSCode extension in javascript for a specific type of files. I would like to add a functionality that when opening this file type, the extension will check if the default editor of the file type is VSCode and if not this message will appear:
enter image description here

And then if the user clicks on Open with VSCode, the extension will set VSCode as the default editor of this type of files.

I searched on the VS Code API but I didn't find something useful and I have no clue how I could do something like that.

Thank you very much in advance!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have to interact with the OS to set the defaults. For example - you can go in settings - apps - default apps to set the default apps for specific file types. So I think you cannot do it directly as it also requires admin privileges and you can try using automation or something like that to achieve this. I don't think anyone can provide a direct way or code to do what you mentioned.

about 4 years ago · Juan Pablo Isaza 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!