1. Change the cursor size
Preferences--Add the following code to the user settings:
"Caret_extra_top": 0,
"Caret_extra_bottom": 0,
"Caret_extra_width": 1
The table element delimiter needs to be added;
2. Custom code Snippets (code completion)
Official documents
<snippet>
<content><! [Cdata[type your snippet here]]></content>
<!--Optional:tab trigger to activate the snippet-
<tabTrigger>xyzzy</tabTrigger>
<!--optional:scope The TAB trigger is active in--
<scope>source.python</scope>
<!--optional:description to show in the menu--
<description> My Fancy Snippet</description>
</snippet>
<content></content> content tags, <! [cdata[content]]>
<tabTrigger></tabTrigger> trigger flag, after typing, press the table after the ENTER key auto-complete
<scope></scope> scope, file name
<description>0</description> Description of the code snippet
Eg: (Modify selected target)
<content><! [Cdata[clog ("${1:}", ${2:10});] ></content>
<tabTrigger>log</tabTrigger>
Enter log completion to clog ("", 10);
The cursor stays in the "", press the table key to cut to 10, you can also change the cursor to stay
$PARAM 1, $PARAM 2 ... |
Arguments passed to the Insert_snippet command. (not covered here.) |
$SELECTION |
The text is selected when the snippet was triggered. |
$TM _current_line |
Content of the line the cursor is in while the snippet was triggered. |
$TM _current_word |
Current word under the cursor when the snippet is triggered. |
$TM _filename |
File name of the file being edited including extension. |
$TM _filepath |
FileName path to the file being edited.// |
$TM _fullname |
User ' s user name. |
$TM _line_index |
Column The snippet is being inserted at, 0 based. |
$TM _line_number |
Row The snippet is being inserted at, 1 based.//where the line number |
$TM _selected_text |
An alias for $SELECTION. |
$TM _soft_tabs |
YES If Translate_tabs_to_spaces is true, otherwise NO. |
$TM _tab_size |
Spaces Per-tab (controlled by the tab_size option). |
Effect:
====================================
USER NAME: $TM _fullname
File name: $TM _filename --File name
TAB SIZE: $TM _tab_size
SOFT TABS: $TM _soft_tabs
====================================
# Output:
====================================
USER Name:guillermo
FILE NAME:test.txt
TAB Size:4
SOFT Tabs:yes
====================================
3. Add LUA compilation system Luajit
1, download http://luajit.org/download.htm,
In the LUAJIT-2.0.3\SRC directory there is a msvcbuild.bat batch file, you need to first luajit.exe this thing to compile.
2. Open the command-line tool for Visual Studio
3. Use the VS command-line tool CD to Luajit's SRC directory
4, execute Msvcbuild.bat batch file, compile Luajit.exe
Packages add lua.sublime-build {"cmd": ["D:/luajit-2.0.3/src/luajit.exe", "$file"], "File_regex": "^ (?: Lua:)? [ \ t] (...):( [0-9]*):? ([0-9]*) "," selector ":" D:/test/main.lua "}