CHAPTER 3 - 快速鍵與常用指令
上一節我們提到了 EZoApp 左邊的程式編輯區,相信已經習慣寫程式的朋友們,一定會有自己開發工具的快速鍵 ( 特別是學校的學生,Ctrl + c 和 Ctrl + v 一定是必備的,哈哈開玩笑的!) 在 EZoApp 裏,也有許多的這種快速鍵可以用,下面就把所有的快速鍵列出來,並推薦一些最常用到的快速鍵。
首先來看一下該如何秀出快速鍵,點選右上方的問號 icon 就可以打開快速鍵列表。
常用的快速鍵:
- Ctrl + / :單行註解
- Ctrl + z:復原
- Ctrl + y:取消復原
- Ctrl + p :刪除單行
- Alt + up:把游標的這一行與上一行互換
- Alt + down:把游標的這一行與下一行互換
- Ctrl + f:查詢
- Ctrl + shift + f:自動排版程式碼
- Ctrl + [、Ctrl + ]:縮排指令
- Alt + /:在游標處跳出提示
完整的快速鍵列表:
toggleFoldWidget | f2 | overwrite | insert |
---|---|---|---|
golineup | up | golinedown | down|Ctrl-n |
gotolinestart | home|Ctrl-a|Cmd-left | gotoleft | left|Ctrl-b |
gotolineend | end|Ctrl-e|Cmd-right | gotoright | right|Ctrl-f |
gotopagedown | pagedown|Ctrl-v | gotopageup | pageup |
del | delete|Ctrl-d|Shift-delete | backspace | backspace|Ctrl-backspace|Ctrl-h|Shift-backspace |
expandSnippet | tab | centerselection | Ctrl-l |
selectOrFindNext | Ctrl-g | jumptomatching | Ctrl-p |
removetolineend | Ctrl-k | blockoutdent | Ctrl-[ |
blockindent | Ctrl-] | splitline | Ctrl-o |
transposeletters | Ctrl-t | touppercase | Ctrl-u |
toggleParentFoldWidget | Alt-f2 | gotowordleft | Alt-left |
gotowordright | Alt-right | pagedown | Alt-pagedown |
pageup | Alt-pageup | movelinesup | Alt-up |
movelinesdown | Alt-down | removewordleft | Alt-backspace|Ctrl-Alt-backspace |
removewordright | Alt-delete | startAutocomplete | Alt-/ |
addCursorAbove | Ctrl-Alt-up | addCursorBelow | Ctrl-Alt-down |
selectMoreBefore | Ctrl-Alt-left | selectMoreAfter | Ctrl-Alt-right |
splitIntoLines | Ctrl-Alt-l | alignCursors | Ctrl-Alt-a |
findAll | Ctrl-Alt-g | selectup | Shift-up |
selectdown | Shift-down | selectleft | Shift-left |
selectright | Shift-right | selectpagedown | Shift-pagedown |
selectpageup | Shift-pageup | selectlinestart | Shift-home |
selectlineend | Shift-end | outdent | Shift-tab |
goToPreviousError | Ctrl-Shift-e | selectOrFindPrevious | Ctrl-Shift-g |
selecttomatching | Ctrl-Shift-p | tolowercase | Ctrl-Shift-u |
formatContent | Ctrl-Shift-f | selectwordleft | Alt-Shift-left |
selectwordright | Alt-Shift-right | modifyNumberUp | Alt-Shift-up |
modifyNumberDown | Alt-Shift-down | addCursorAboveSkipCurrent | Ctrl-Alt-Shift-up |
addCursorBelowSkipCurrent | Ctrl-Alt-Shift-down | selectNextBefore | Ctrl-Alt-Shift-left |
selectNextAfter | Ctrl-Alt-Shift-right | showSettingsMenu | Cmd-, |
selectall | Cmd-a | gotoline | Cmd-l |
fold | Cmd-f1|Cmd-Alt-l | findnext | Cmd-g |
find | Cmd-f | gotostart | Cmd-home|Cmd-up |
gotoend | Cmd-end|Cmd-down | removeline | Cmd-d |
togglecomment | Cmd-/ | undo | Cmd-z |
redo | Cmd-y|Cmd-Shift-z | removetolinestart | Cmd-backspace |
foldOther | Cmd-Alt-0 | togglerecording | Cmd-Alt-e |
sortlines | Cmd-Alt-s | replace | Cmd-Alt-f |
copylinesup | Cmd-Alt-up | copylinesdown | Cmd-Alt-down |
showKeyboardShortcuts | Cmd-Alt-h | foldall | Cmd-Ctrl-Alt-0 |
unfold | Cmd-Shift-f1|Cmd-Alt-Shift-l | findprevious | Cmd-Shift-g |
selecttostart | Cmd-Shift-up | selecttoend | Cmd-Shift-down |
selecttolinestart | Cmd-Shift-left | selecttolineend | Cmd-Shift-right |
replaymacro | Cmd-Shift-e | duplicateSelection | Cmd-Shift-d |
toggleBlockComment | Cmd-Shift-/ | expandtoline | Cmd-Shift-l |
unfoldall | Cmd-Alt-Shift-0 | passKeysToBrowser | null |