美文网首页
Sublime text 3 文本编辑

Sublime text 3 文本编辑

作者: 天马行空爱做梦 | 来源:发表于2019-04-16 18:59 被阅读0次

Sublime 安装sql:

  1. 按下command+Shift+P调出命令面板 input sql
  2. 输入install 调出 Install Package 选项并回车,然后在列表中选中要安装的插件。
  3. 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: .[{()*+?|^. The single character '.' ,match any single character ,except the NULL , the newline character 匹配任意字符 A '^' character shall match the start of a line. A '' 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

相关文章

网友评论

      本文标题:Sublime text 3 文本编辑

      本文链接:https://www.haomeiwen.com/subject/vgjiwqtx.html