1. 查找文件 ctrl+p
2 . sublime 正则替换:
需求,原来print是打印到屏幕,现在需要打印到log文件 ,需要加上,file = log_file
print("########### except 3######################") ---> print("########### except 3######################",file = log_file )
记得要开启正则匹配,如红色箭头,具体匹配如下:
(print.*?)\)
$1,file=log_file.txt)
3. sublime 长行自动断行 https://jingyan.baidu.com/article/48b558e3205abb7f38c09a90.html
4. sublime jump back and jump forward
lookup in : Sublime Text > Preferences > Key Bindings - Default opens a buffer named Default (OSX).sublime-keymap.
in my linux: It is alt+-
5. sublime 的自动注释
python可使用DocBlockr_Python 参考:https://packagecontrol.io/packages/DocBlockr_Python
使用方法:''' + table ,一定要主要必须在函数底下按才能注释函数”
'''There isn't a command pallete command to start this plugi