Visual Studio Code列编辑和多光标编辑

列编辑

要求:下面的文本,要在行头插入cp,行尾插入src(Windows):

../src/thil
../src/thre
../src/thre
../src/thre.h
../src/threp
../src/thTrpp
../src/the.cpp

多行行首插入:光标移动到第一行行首(最后一行也可以),按住ALT+SHIFT,移动鼠标选择多行,直接输入cp 就可以(也可以移动到任一列)::

cp ../src/thil
cp ../src/thre
cp ../src/thre
cp ../src/thre.h
cp ../src/threp
cp ../src/thTrpp
cp ../src/the.cpp

多行行尾插入:选择多列,按住ALT+SHIFT+I,直接输入./src 就可以(也可以移动到任一列)::

cp ../src/thil ./src
cp ../src/thre ./src
cp ../src/thre ./src
cp ../src/thre.h ./src
cp ../src/threp ./src
cp ../src/thTrpp ./src
cp ../src/the.cpp ./src

多光标编辑

ALT,然后点击鼠标选择不同的位置,就可以编辑了。

下载VSC:https://code.visualstudio.com/
https://kencenerelli.wordpress.com/2018/03/25/visual-studio-code-multi-line-and-multi-cursor-editing/
https://stackoverflow.com/questions/30037808/multiline-editing-in-visual-studio-code

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值