我有一个像这样的代码块:
select * , (select NewColumn from [dbo].TableB) as NewColumn
from [dbo].TableA
将ec2_shell_exec(tag: "ls /
ec2_shell_exec(tag: "sudo yum install git-core
ec2_shell_exec(tag: "pwd
添加到此代码块的最简单方法是什么?
请注意,emacs以终端模式运行,也称为-nw模式。
答案 0 :(得分:3)
C-M-%$ RET")RET
C
, Alt 表示{ {1}}和 Shift-5 M
%
的终端),你可以做 Mx query-replace-regexp RET $ RET")RET emacs -nw
答案 1 :(得分:1)
在大多数终端上应该很容易输入keyboard macro:
答案 2 :(得分:0)
总结这里的两个解决方案(对于在终端中运行emacs的人员):
M-x query-replace-regexp RET $ RET ") RET
和
first highlight ec2_shell_exec(tag. And call mc/mark-all-like-this which is from multiple-cursor. You will see all ec2_shell_exec(tag being hightlighted. Now call end-of-line to move every cursor to the end. Finally, you can insert anything you want. Press C-g to end operation
视频演示:https://www.youtube.com/watch?v=jNa3axo40qM
感谢adobe和tom!