insertkeypadkeys.em
来自「source insight的EM文件 可以扩展SI的宏功能」· EM 代码 · 共 46 行
EM
46 行
/*
Macro commands to insert characters found on the keypad.
Because of a bug in Source Insight, the / * - + keys on the
numeric keypad do not insert those characters, even if 'NumLock' is off.
As with other macros, to use this:
1. Add this macro file to your project.
2. Run the Options->Key Assignments command.
3. Find and select the macro name(s) in the command list
4. Press 'Add' to bind an appropriate key to the macro.
Now you can run the macro command
*/
macro InsertAsterisk()
{
hbuf = GetCurrentBuf()
if (hbuf != 0)
SetBufSelText(hbuf, "*")
}
macro InsertSlash()
{
hbuf = GetCurrentBuf()
if (hbuf != 0)
SetBufSelText(hbuf, "/")
}
macro InsertPlus()
{
hbuf = GetCurrentBuf()
if (hbuf != 0)
SetBufSelText(hbuf, "+")
}
macro InsertMinus()
{
hbuf = GetCurrentBuf()
if (hbuf != 0)
SetBufSelText(hbuf, "-")
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?