Scite配置
(所有配置需要在重启之后生效)
现在很多人需要用cocos2d-x + lua吧,但是
要在vs上写lua的话太多余痛苦,所以老大发了一个编辑器给我。SciTE。跟lua for windows一起安装上的,于是就有了这样一篇配置文档
快速配置:
1. 装好这个版本的SciTE,然后用附件里我设置好的locale.properties放到\Lua\5.1\SciTE目录下就能用中文版
2. 附件luaCocos2d.api和 lua.properties覆盖\Lua\5.1\SciTE目录下的东西就可以用cocos2d-x的api
3. 本地的SciTEUser.properties在“我的文档”里面,你自己的快捷键在这里设置,可以打开附件SciTEUser.properties参考我的可以看到如何设置,我只设置了书签和缩进提示的快捷键,需要可以直接覆盖
4. 另外在菜单栏也会有提示一些常用的快捷键
后面有需要参考的文档,需要继续学习SciTE更多功能的兄弟可以深究 ^ ^
配置好的文件,只需要覆盖就可以直接用:
http://download.youkuaiyun.com/detail/u010314872/5712399
键盘快捷键说明:
Keyboard commands
Keyboard commands in SciTE mostly follow common Windows and GTK+ conventions. All movement keys (arrows, page up/down, home and end) allow to extend or reduce a stream selection when holding the Shift key, and a rectangular selection when holding the Shift and Alt keys. Some keys may not be available with some national keyboards or because they are taken by the system such as by a window manager on GTK+. The user.shortcuts setting may be used to assign a key to a function. Note that Home key behaviour is changed by the vc.home.key option. Keyboard equivalents of menu commands are listed in the menus. Some less common commands with no menu equivalent are:
Magnify text size. |
Ctrl+Keypad+ |
Reduce text size. |
Ctrl+Keypad- |
Restore text size to normal. |
Ctrl+Keypad/ |
Cycle through recent files. |
Ctrl+Tab |
Indent block. 缩进主要靠这2个,他没有vs那样的整体缩进 |
Tab |
Dedent block. |
Shift+Tab |
Delete to start of word. |
Ctrl+BackSpace |
Delete to end of word. |
Ctrl+Delete |
Delete to start of line. |
Ctrl+Shift+BackSpace |
Delete to end of line. |
Ctrl+Shift+Delete |
Go to start of document. |
Ctrl+Home |
Extend selection to start of document. |
Ctrl+Shift+Home |
Go to start of display line. |
Alt+Home |
Go to end of document. |
Ctrl+End |
Extend selection to end of document. |
Ctrl+Shift+End |
Go to end of display line. |
Alt+End |
Expand or contract a fold point. |
Ctrl+Keypad* |
Select to next bookmark. |
Alt+F2 |
Select to previous bookmark. |
Alt+Shift+F2 |
Find selection. |
Ctrl+F3 |
Find selection backwards. |
Ctrl+Shift+F3 |
Scroll up. |
Ctrl+Up |
Scroll down. |
Ctrl+Down |
Line cut. |
Ctrl+L |
Line copy. |
Ctrl+Shift+T |
Line delete. |
Ctrl+Shift+L |
Line transpose with previous. |
Ctrl+T |
Selection duplicate. |
Ctrl+D |
Find matching preprocessor conditional, skipping nested ones. |
Ctrl+K |
Select to matching preprocessor conditional. |
Ctrl+Shift+K |
Find matching preprocessor conditional backwards, skipping nested ones. |
Ctrl+J |
Select to matching preprocessor conditional backwards. |
Ctrl+Shift+J |
Previous paragraph. Shift extends selection. |
Ctrl+[ |
Next paragraph. Shift extends selection. |
Ctrl+] |
Previous word. Shift extends selection. |
Ctrl+Left |
Next word. Shift extends selection. |
Ctrl+Right |
Previous word part. Shift extends selection |
Ctrl+/ |
Next word part. Shift extends selection. |
Ctrl+\ |
Rectangular block selection. |
Alt+Shift+Movement |
Extend rectangular selection to start of line. |
Alt+Shift+Home |
Extend rectangular selection to end of line. |
Alt+Shift+End |
可用于设置快捷键,例如,打开options|open SciTeUser.properties
直接打上
user.shortcuts=\
Ctrl+W|2327|\
Alt+W|2620|\
Alt+S|2621|
就相当于将命令2327跟快捷键相关联了,以此类推
命令目录:
SciTE menu commands
Command |
Menu text |
IDM_NEW |
New |
IDM_OPEN |
Open |
IDM_OPENSELECTED |
Open Selected Filename |
IDM_REVERT |
Revert |
IDM_CLOSE |
Close |
IDM_SAVE |
Save |
IDM_SAVEAS |
Save As |
IDM_SAVEACOPY |
Save a Copy |
IDM_COPYPATH |
Copy Path |
IDM_ENCODING_DEFAULT |
Code Page Property |
IDM_ENCODING_UCS2BE |
UTF-16 Big Endian |
IDM_ENCODING_UCS2LE |
UTF-16 Little Endian |
IDM_ENCODING_UTF8 |
UTF-8 with BOM |
IDM_ENCODING_UCOOKIE |
UTF-8 |
IDM_SAVEASHTML |
As HTML |
IDM_SAVEASRTF |
As RTF |
IDM_SAVEASPDF |
As PDF |
IDM_SAVEASTEX |
As LaTeX |
IDM_SAVEASXML |
As XML |
IDM_PRINTSETUP |
Page Setup |
IDM_PRINT |
|
IDM_LOADSESSION |
Load Session |
IDM_SAVESESSION |
Save Session |
IDM_QUIT |
Exit |
IDM_UNDO |
Undo |
IDM_REDO |
Redo |
IDM_CUT |
Cut |
IDM_COPY |
Copy |
IDM_PASTE |
Paste |
IDM_DUPLICATE |
Duplicate |
IDM_CLEAR |
Delete |
IDM_SELECTALL |
Select All |
IDM_COPYASRTF |
Copy as RTF |
IDM_MATCHBRACE |
Match Brace |