Sublime run code – open in browser shortcut key settings

Start

Many small partners use sublime to write front-end HTML files, but they may encounter some problems when the browser is opened

For example, you can’t click open in browser to open it in a browser

Today, Xiaobian will teach you to install a plug-in to realize the shortcut key to open the HTML file just written in the browser

Install the view in browser plug-in

First, just open the software & gt

Press the shortcut key Ctrl + Shift + P

Select package control

Then enter PCIP in the search box

At this point, we see the first preferred plug-in package C ontrol:Install Package Let’s just go back and wait for a moment, a search box will appear again

Install the view in browser plug-in

Enter: view. If you don’t have a friend installed, the first plug-in will be [view in browser]

Just press enter. If you have installed the view in browser plug-in, you will not display that plug-in like me

Set the shortcut key to run the code

Above, we have installed the view in browser plug-in. Next, we start to set the shortcut key

The shortcut key is “Ctrl + Shift + B”

Click preferences > key Bindings

Then, in the middle of the “[]” brackets in the blank box on the right, enter:

{ “keys”: [“ctrl+shift+b”], “command”: “open_ in_ browser” },

Then Ctrl + s saves and closes the window

The most crucial step

Set the default opening mode of HTML file to chrome

And then it was

Similar Posts: