📄 jg_mac.txt
字号:
This document describes the UltraEdit macros contained in the file
JG_Mac10.mac. The macros were developed under UltraEdit version 5.21.
The macro library can be loaded by using the Macro->Load or
Macro->Load and Append to Existing menu options in UltraEdit. The
default hot key assignments are provided in parentheses and can be
easily changed using the Macro->Delete Macro/Modify Hot Key menu option.
These macros were developed strictly as an educational exercise and
no warranty is provided with respect to their usability or integrity
(i.e., use at your own risk!).
Any problems, comments, or suggestions are welcome and can be e-mailed
to john.goodman@qwest.net.
Enjoy... John D. Goodman
JoinLines (F8)
This macro joins the line following the current line to the end of
the current line with a single space between them.
PosFirstNonWhite (F7)
This macro moves the cursor to the first non-whitespace (non-space
or -tab) character on the current line.
Note: What I really wanted to do (and will keep working on) was
to develop an "intelligent" Home key that would work as follows:
if the cursor is in column 1
move to the first non-whitespace character
else
move to column 1
Some people prefer:
if the cursor is on the first non-whitespace character
move to column 1
else
move to the first non-whitespace character
LineAlignPrev (Ctrl+F7)
This macro aligns the beginning of the current line to the beginning
of the line above it.
Note: Some people might prefer to add a Key DOWN ARROW command to
the end of the macro. This would allow you to align a series of
lines by repeatedly hitting the hot key.
LineAlignCursor (Ctrl+F8)
This macro aligns the beginning of the current line to the current
cursor position. For example, if the cursor is in column 20, the
line will be shifted to begin in column 20.
Note: Some people might prefer to add a Key DOWN ARROW command to
the end of the macro. This would allow you to align a series of
lines by repeatedly hitting the hot key (best if used with the Allow
Positioning Beyond Line End option set to on).
LineRight1 (Shift+F8)
This macro shifts the current line right by one character (by adding
a space in column 1).
LineLeft1 (Shift+F7)
This macro shifts the current line left by one character (by deleting
the character in column 1).
CmmtThisLine (Alt+F7)
This macro "comments-out" the current line by adding an in-line
comment string ("// " by default) to the beginning of the line.
Indentation of the line is preserved. For example:
Line before invoking macro:
........GrandTotal += SubTotal
Line after invoking macro:
........// GrandTotal += SubTotal
CmmtAbove (Alt+F8)
This macro adds a blank comment line above the current line to
facilitate (and encourage!) writing a description of what the current
line does. The beginning of the comment line is aligned with the
original line and the cursor is positioned just after the in-line
comment string. For example:
Line before invoking macro:
........GrandTotal += SubTotal
Lines after invoking macro (cursor position = ^):
........// ^
........GrandTotal += SubTotal
RemLeadingWhite (Ctrl+Shift+F7)
This macro deletes leading whitespace characters (spaces and tabs)
from the current line.
RemTrailingWhite (Ctrl+Shift+F8)
This macro deletes trailing whitespace characters (spaces and tabs)
from the current line.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -