Sublime text added to the right mouse button function

Source: Internet
Author: User

Install sublime text classmate may forget to set the sublime text right-click function when installing. So we'll show you how to add.

We are going to create a file Sublime_addright.reg. reg as a suffix. So......

    • What is the reg file, to see the explanation of Baidu

The reg file is actually a registry script file for the Windows operating system, and you can import the data into the registry by double-clicking the reg file. With a reg file, we can make any modification to the registry directly, and its operation on the registry is not restricted by the Registry Editor being disabled, so the functionality is more powerful and flexible, and because the reg file can be modified with any text file editing tool, such as Notepad, Therefore, through its modification of the registry data, if an error occurs, you can also change back to the data in the reg file and then import, so that it is more secure than directly with the Registry Editor modification, so skilled in the use of reg file, can sometimes play a multiplier, unexpected effect.

    • How to create

Because it is a running file, we can first create a. txt file (or a. doc, etc.) and then change the suffix to. Reg. Take my sublime text for example, my sublime text in the D packing directory. Look at the picture and speak (). Write the following in. txt first: (Note how my path is written!) )

Windows Registry Editor Version5.00[Hkey_classes_root\*\shell\sublimetext3]@="Open with SublimeText3 .""Icon"="d:\\sublime Text 3\\sublime_text.exe,0"[Hkey_classes_root\*\shell\sublimetext3\command]@="d:\\sublime Text 3\\sublime_text.exe%1"[hkey_classes_root\directory\shell\sublimetext3]@="Open with SublimeText3 .""Icon"="d:\\sublime Text 3\\sublime_text.exe,0"[hkey_classes_root\directory\shell\sublimetext3\command]@="d:\\sublime Text 3\\sublime_text.exe%1"

The string after the first @= (that is, opened with Sublime Text3 ) is the word that appears after the right mouse button, and you can switch to another string, such as: Opened with Sublime Text 3.

After the @= and "Icon" = The following path is to be written correctly, note the escape character ' \ \ '. We can see the 0,%1 character behind the path, and this cannot be omitted.

Ang, the above path must not be written wrong, there are two points to note:

1. Because the right mouse appears with Sublime Text3 open , click to open Sublime text, so click event binding is Sublime_text.exe , do not miss write.

2. We can see the 0,%1 character after the path, and this cannot be omitted.

.

.

.

.

.

.

Well, I'm done. Ha ha!

Sublime text added to the right mouse button function

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.