Install sublime, install the plug-in, and use the shortcut key to open it with a browser.

Install sublime, install plug-ins, use shortcut keys to open with a browser, etc.

Content 1: Install sublime and decompress it directly.
Content 2: Install the Emmet plug-in, which can realize quick writing.
Content 3: Use the corresponding browser to open the interface in sublime.

  • first step

Press and hold the shortcut key Ctrl+Shift+P or select Perferences–>Package Control in the menu bar to open the command panel. If there is no response, it will pop up after a while, as shown in the figure below.

insert image description here

  • second step

In this command panel: Enter package control install package, or enter "pcip", which is the first letter of these four words, and a new panel for installing the package will appear. Search for emmet and click the Enter key, and it will be installed automatically later .

出现下图的面板就是可以安装插件了。直接搜索要安装的插件名,回车,就会即可安装。

insert image description here
Note: At this time, some people's software will report an error.

This is because a channel_v3.json file is required. Preferably local.
Open the editor's Preferences (set N)" - "package-settings" -------Package Control -----Settings-User to configure this file.

insert image description here
First I put this channel_v3.json file in D:\Develop\Sublime Text

So write the corresponding path when configuring.

"channels":
	[
		"D:/Develop/Sublime Text/channel_v3.json"
	],

As shown in the figure:
insert image description here
The window system supports / or \ Pay attention to the distinction. Save, press and hold the shortcut keys Ctrl+Shift+P again to install the plugin. Repeat the second step. Search for Emmet install.

  • Step 3
    After installing the Emmet plug-in, check whether the installation is successful.
    Open the editor's Preferences (setting N)" - "package-settings" and see Emmet, which means that Emmet is installed successfully. At
    insert image description here
    this time, we create a new html file.
    Click the lower right corner of the software to select the file type.
    insert image description here
    Enter in the file html:5 Click tab,
    insert image description here
    the code is automatically generated. It doesn’t matter if it is not generated, just change the configuration.
    insert image description here
    If it doesn’t work, it’s because Emmet’s default shortcut key is Ctrl+E, and we need to set it to the commonly used Tab key.

Select Preferences–>PackageSettings–>Emmet–>KeyBindings–>User in the menu bar, and paste the following information into it.

[{“keys”: [“tab”], “args”: {“action”: “expand_abbreviation”}, “command”: “run_emmet_action”, “context”: [{“key”: “emmet_action_enabled.expand_abbreviation”}]}]

At this point, the plug-in Emmet installation is complete.

3 Open the sublime file with a custom browser. There are many ways.

Under normal circumstances, after saving the file (be sure to save it and name it), right-click on sublime and select Open in Browser, it will open in your default browser, 360 or IE.

 可以自己设置,使用什么浏览器打开。也可以设置快捷键。

The first step is to install the plug-in: SideBarEnhancements
The second part: Click "Prefernces" on the toolbar. Select Key Bindings-User under Prefernces or select Key Bindings under Prefernces. as shown in the picture

insert image description here

insert image description here
At this time, a code page will open, and on this page, copy the following code into the array.

There are blank pages like this. insert image description here
There are pages with codes like this
insert image description here

It doesn't matter, add the code we should add, pay attention to the comma.

//chorme

    {
    
    

    "keys": ["ctrl+g"],

    "command": "side_bar_files_open_with",

    "args": {
    
    

        "paths": [],

        "application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",

        "extensions": ".*"

        }

    },
    // firefox
    {
    
     
        "keys": ["ctrl+h"], 
        "command": "side_bar_files_open_with",
            "args": {
    
    
                "paths": [],
                "application": "C:/Program Files/Mozilla Firefox/firefox.exe",            
                "extensions":".*"        
            }
    },    //如果不是末尾插入,记得逗号分隔

There are two things to note in the above code,
1. The keys represent shortcut keys, that is, ctrl+g can start chrome for preview.
// chrome, // firefox are just remarks, remove them when copying.

	keys里的快捷键可以自行更改,f2  或其他都可。

2. It is application, indicating the installation path where the browser is located. Only when the path is configured correctly can the browser be called normally.

	查看方式,找到桌面上谷歌浏览器,右键属性打开复制地址:

insert image description here
After saving, we are all set.
In the corresponding html interface, operate the shortcut key to open the webpage in the corresponding browser.

The installation package is as follows.
Link: https://pan.baidu.com/s/1LdqmqfBwenipqeVuXLjv5A
Extraction code: 3eqf
After copying this content, open the Baidu Netdisk mobile app, the operation is more convenient

insert image description here

Come on vegetable chicken! ! !

Guess you like

Origin blog.csdn.net/qq_41117240/article/details/106239348