SciTE 快捷键

SciTE 快捷键

使用Lua自带的SciTE来编辑代码,有以下快捷健,官方原版是:

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. 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*
Create or delete a bookmark. Ctrl+F2
Go to next bookmark. F2
Select to next bookmark. Alt+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

翻译版本如下,引用自:http://tjc.javaeye.com/blog/287233

Ctrl+Keypad+ 
  放大文字 

  Ctrl+Keypad- 
  缩小文字 

  Ctrl+Keypad/ 
  还原文字大小到默认值 

  Ctrl+Tab 
  在最近打开的两个文件间循环 

  Tab 
  缩进一个tab. 在用scite写笔记时, 每段一般按Tab缩进, 而不是按空格。 
  从网上复制一篇文章到scite文本编辑器,全选,按一下tab, 首行标题顶格,二级标题顶部,就完成所用的文档格式化。 

  Shift+Tab 
  取消一个tab的缩进 

  Ctrl+BackSpace 
  从光标位置删除到一个词的开始处, 中文由于无法断词, 如果用的是中文标点,就变成一直删除到行首了。如果用的英文标点,就删除到上一个英文标点处 

  Ctrl+Delete 
  从光标位置删除到一个词的结束处 

  Ctrl+Shift+BackSpace 
  从光标位置删除到行首 

  Ctrl+Shift+Delete 
  从光标位置删除到行尾 

  Ctrl+Home 
  光标移动到文档开始处 

  Ctrl+Shift+Home 
  从光标处开始选择文本一直到行首 

  Alt+Home 
  到显示的行首。按End时光标只是移到行首第一个字的前面 

  Alt+Shift+Home 
  扩展选择到行首 

  Ctrl+End 
  光标移动到文档结束处 

  Ctrl+Shift+End 
  从光标处选择文本一直到文档结束处 

  Alt+End 
  光标移动到行尾 

  Alt+Shift+End 
  扩展选择到行尾 

  Ctrl+Keypad* 
  展开或收缩光标所在的折叠区域。这个很好记忆,这样理解:*号很象圆形的折叠符号 

  Ctrl+F2 
  创建或删除一条书签. 在写很长的文档或代码时, 加一个书签就很方便地可以跳来跳去 

  F2 
  跳到下一条书签 

  Alt+F2 
  扩展选择到下一条书签. 有什么用呢, 创建两条书签, 光标移动到要选中的开始处, 按快捷键, 两条书签之间的内容就选中了 

  Ctrl+F3 
  **向文档结束方向查找选中字符 
  这个功能很好用, 要在文档内查找, 你不需象通常的那样要按Ctrl+F, 你只需要把光标放到词内部或前后, 按Ctrl+F3就自动在文档内查找 
  如果要在文档内查找中文, 由于中文无法断词, 要先手动选择要查询的词, 再按快捷键. 
  说点题外话,既不媚外, 也不盲目地拔高传统文化. 汉字有汉字的优点, 英文有英文的优点, 若一定要分出高下来, 是很难办到的事情. 曾看到一些对传统文化(如易经)很有偏好的人非常推崇中文, 认为是最优秀的文字, 是英文远不能比的. 
  但在这里, 中文断词的问题怎么解决, 英文可以简单地以空格来断词, 中文怎么办? 至少在这个文内查找, 英文就比中文方便多了. 

  Ctrl+Shift+F3 
  **向文档开始方向查找选择字符 
  英文是 Find selection backwards, 字面翻译是向后查找选中文字, 这个”向后”是比较容易引起歧义的, 译为”文档开始方向”就不存在这个问题 

  Ctrl+Up 
  Scroll up 

  Ctrl+Down 
  Scroll down 

  Ctrl+L 
  **剪切光标所在行 
  这个很有用. 如果用记事本来写日记或文档, 剪切行就麻烦多了. 用scite来写 读书笔记什么的, 即使不作任何优化配置, 利用scite的快捷键也提高一些常用操作的效率也不错 
  提示: 快捷键中L代表Line 这样理解了以后, 就根本不用死记, 自然记住了这个快捷键的用法. 一个聪明的人性化的程序, 所有快捷键都是可以理解而不需要记忆的, 从这里也可以看出程序作者是否别具匠心 

  Ctrl+Shift+T 
  **复制光标所在行. 应用时可以右手按Ctrl+Shift, 左手按T 

  Ctrl+Shift+L 
  **删除光标所在行 

  Ctrl+T 
  **和上一行互换位置 
  在 SciTE4AutoIt3中, 用Ctrl+T调用Tidy整理源代码. 
  为避免快捷键撞车, 打开 au3.properties, 找到 JdeB’s Tidy formatting program for 
  Autoit3 条, 把快捷键改成Ctrl+Shift+Alt+T, 或者修改 Scite用户配置文件sciTEUser.properties 
  提示: 在这里T表示transpose, 即互换位置. 

  **Ctrl+D 
  复制高亮选中字符. 如果没有高亮选择字符, 则复制光标所在行 
  这是一个使用频率比较高的快捷键, 在用 
  SciTE4AutoIt3写代码时, 要临时改写调试一句代码, 按Ctrl+D复制当前行, 按小键盘的-注释掉当前行. 
  调试好后要用回原来代码, 只要Ctrl+Shift+L删除行, 再按小键盘的-取消注释符号即可, 根本用不到手动选择复制之类. 
  提示: 在这里D表示duplicate, 使用快捷键的另一个乐处就是记住了字母所代表的单词, 对于程序来说, 多数编程资料是英文形式的, 因此务必知道各种缩写的原型, 一则更容易理解记忆, 二则从某种意义上来说, 英语从某种意义上是程序设计的基础.

  Ctrl+[ 
  光标移动到上一段, 加Shift的话是扩展选择 

  Ctrl+] 
  光标移动到下一段, 加Shift的话是扩展选择 

  Ctrl+Left 
  光标跳到上一词. 加Shift的话是扩展选择 

  Ctrl+Right 
  光标跳到下一词. 加Shift的话是扩展选择 

  Ctrl+/ 
  光标跳到上一词部分. 加Shift的话是扩展选择 

  Ctrl+\ 
  光标跳到下一词部分. 加Shift的话是扩展选择

原文地址:https://www.cnblogs.com/meetrice/p/2701038.html