How sublime text files need to write your own custom framework

  In order to facilitate the work or study, there is a shortcut key appears to be to help you write code faster when using the sublime text, so we have to learn to set their own source framework needs all kinds of programming language, then I will detail the quick tutorial describes how to set up their own pop-up frame of the sublime text.

  First install the sublime text, this can Baidu to search, then install, you can always install their own default or other disk, if your C drive space is large, then when I did, go to the official website to download Once installed you need to install a plug-in required the document, click the menu View -> Show Console, a command input box will appear at the bottom, then the above command copies the input box, press enter, wait, the installation is successful, or if you press Ctrl + Shift + P in the pop-up software console input, if you enter the installation is not successful, then went into https://packagecontrol.io/installation , the link to download Package Control.sublime-package If you can not find this file, then you can see the pictures show.

  Download or software installation is successful, open the console, if you see in Perferences-> package control in this one, the installation is successful, if not seen put the downloaded file is moved D: \ Sublime Text 3 \ Packages, here I was installed in the D drive, you will open your letter will be the installation of the downloaded files are moved to the inside, then somehow open the console, enter the install Package, you can install a plug-in, install the necessary plug-ins ConvertToUTF8 and ChineseLocalizations , ConvertToUTF8 plug-in is that it gives support to display content such as ST encoding such as GBK, ChineseLocalizations plug-in is a way for sublime finished plug-ins, after the show finished and successful encoding plug-in installation can be set up framework.

  

  1. Click the Tools menu bar sublime -> Plug-in Development -> New snippet option.

 

 

  

  

   2.Sublime Text会提供下面的模版供我们定制代码片段:

 

 

  

  

  3.我们只需把代码添加到<content>中的<![CDATA[ ]]>元素内即可,设置如下:

 

 

  

  

  如果你不想照着打,下面有可以直接复制粘贴的代码:

  

View Code

 

 

 

  4.设置完毕可以保存了哈,按ctrl+s,注意了哦:

 

 

  

  

 

  

  5.新建一个文件,输入你设置的注释:

  

  

 

  按下tab键:

  

   

  

  好了!效果很棒!这样就显示出你所需要的编写的语言框架。而且还省去了你很多时间去输入前面的内容框架,设置一次,享受终生。如果还是不懂的话就多看几次!不懂的话就多看几次!不懂的话就多看几次!重要的事情说三遍!

  

  

  

  

Guess you like

Origin www.cnblogs.com/renx62623/p/12392323.html