Sublime plug Emmet error codes and Tab Completion

We encounter the following problems with the installation of the plug-Sublime

 

 

 As for the method Package Control program online, you can manually download and install, and if the figure below appears, the installation was successful.

 

 

 

Then install the plug, there will be a problem the first picture, the solution is as follows:

Accessing the site using your browser: https: //packagecontrol.io/channel_v3.json

This is a json, and if you have access to the network, then save it (ctr + s on it), you will get a file named channel_v3.json of.

Channel_v3.json open this file, full-text search, find schema_version, you will find that followed afterwards 3.0.0, the following modifications, into 2.0, for! It is 2.0, not 2.0.0!

Then put the file in a safe place, pay attention to the file path do not have non-ASCII characters or spaces.

The final step, there are two configurations, it can open the user configuration.

 

 

Paste this sentence:

"channels":
     [
"D:\\Programing\\channel_v3.json"

],

Of course you want to modify the path to the file you saved channel_v3.json local path, then re-install the plug will not be wrong! !

安装完成后我们利用Emmet插件去快速生成HTML代码,例如输入html:5按住Tab键即可生成HTML文件完整的结构,但是很多人在安装完成后输入html:5然后按住Tab键并没有反应,这是什么原因导致的呢?原来Emmet默认的快捷键是Ctrl+E,我们需要将其设置成常用的Tab键。
在菜单栏选择Preferences-->PackageSettings-->Emmet-->KeyBindings-->User,将以下信息粘贴进去即可:
[{"keys": ["tab"], "args": {"action": "expand_abbreviation"}, "command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.expand_abbreviation"}]}]

重启Sublime Text3此时我们便可以进行代码补全操作了,在新创建的文件上输入html:5,按住Tab键即可看到如下的代码。

 

Guess you like

Origin www.cnblogs.com/tianqianlan/p/12109726.html