Sublime 安装sql:
- 按下command+Shift+P调出命令面板 input sql
- 输入install 调出 Install Package 选项并回车,然后在列表中选中要安装的插件。
- sublime用的正则表达式与perl的相同
Option+command+F 选择".*" 正则匹配模式
4.发现用两列显示。用mac系统,快捷键是alt+command+2(两列显示)。变回一列显示alt+command+1.
sumlime 中的正则表达式和perl保持一致
perl 正则中
all characters match themselves except for the following special characters: .[{()*+?|^' character shall match the end of a line.
Any atom (a single character, a marked sub-expression, or a character class) can be repeated with the *, +, ?, and {} operators
The * operator will match the preceding atom zero or more times,
The + operator will match the preceding atom one or more times,
The ? operator will match the preceding atom zero or one times,for example the expression ca?b will match any of the following: cb,cab
An atom can also be repeated with a bounded repeat:
a{n} Matches 'a' repeated exactly n times.
a{n,} Matches 'a' repeated n or more times.
a{n, m} Matches 'a' repeated between n and m times inclusive.
sublime中copy进来的code,快速格式化方法:
Edit->Line->Reindent
网友评论