TL;DR: read only bold text + check pictures.

I was trying to change .txt files default program to visual studio code,
the problem is, that when I open settings in windows 10 and try to change it there,
visual studio code is not listed in the default programs and there is no browse button,
so that I could pick any program I want via the path to it.

I have also tried to change the default app in right MB -> open with -> choose another app, but no luck, there was no permanent option.

enter image description here

How are you supposed to change the default program than?

2

1 Answer

If there was really no checkbox for "Always use this app to open .txt files" on your "Choose another app" menu, you might have luck changing your default app settings - which you can either search for on your Windows 10 or:

  • Go to Control Panel
  • Click Default Programs
  • Click Set your default programs
  • Click Choose default apps by file type
  • Scroll down to .txt
  • Change your application to Visual Studio Code

If that doesn't work, you should also be able to do so from command-line using the ftype and assoc commands:

ftype txtfile="C:\Path\To\Visual Studio Code.exe" assoc .txt=txtfile 

Reference: ftype, assoc

4