Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make Sublime Text 3 my default text editor on Windows 10?

I know this question has been asked before in various places but I've tried everything and nothing has worked for me. When I select "open with" there is no option for "always open .txt files with this app."

The answer I saw on a few threads on here and elsewhere was to open "regedit" and navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command and then "kill explorer.exe" in Task Manager (which I couldn't find...). What I am doing wrong?

Does anyone have an alternate solution to this problem? I just want to be able to click on a text file and immediately be able to use Sublime.

like image 966
secretagentmango Avatar asked May 19 '18 17:05

secretagentmango


People also ask

How do I use Sublime Text 3 on Windows?

Step 1: Open the downloaded .exe file from the downloads folder and begin with the installation process. Step 3: If you want Sublime Text 3 to appear in your right-click menu, then mark the checkbox and click on the Next button. Step 4: Press the install button. Step 5: Finish with the installation process.

Is Sublime Text 3 a text editor?

Sublime Text is one of the most popular text editors in the world. It's jam-packed with powerful features like multi-line editing, build systems for dozens of programming languages, regex find and replace, a Python API for developing plugins, and more.


1 Answers

It's an issue on Windows OS side. Don't worry, I have a fix for you (the only method that works on the Internet):

  • Open start menu --> type in cmd --> right click on it and run as administrator

  • Depending on where you have your sublime installed, you will have to edit the path, otherwise, copy + paste this line in order to change the .txt extension:

ftype txtfile="C:\Program Files\Sublime Text 3\sublime_text.exe" "%1"

You can follow the same logic by always starting with "ftype" in front and then then you will need to find out what is the abbreviation of a chosen extension. You can do that by typing in "assoc .css"

For example, .php is PHPfile or .css is CSSfile

Screenshot here with some more examples

like image 151
ZyQux Avatar answered Sep 16 '22 20:09

ZyQux