简体   繁体   English

Vscode 停止多行光标跳到最后一个字符后的行首

[英]Vscode stop multiline cursors to jump to start of line after last character

I need to edit multiple files to create fixtures in php. I start with a spreadsheet and use multicursor to insert the code in between the text, adding multiple lines when necessary to have all in one column (that my php linter removes on save).我需要编辑多个文件以在 php 中创建固定装置。我从一个电子表格开始并使用多光标在文本之间插入代码,必要时添加多行以将所有内容放在一列中(我的 php linter 在保存时删除)。

When I get to the end of the line, some cursors, that are more advanced, restart the line again.当我到达行尾时,一些更高级的游标会再次重新启动该行。 What I would like to get:我想得到什么:

  • To have those cursors sticking to the end of line so I can add the closing characters after a text that can have different lenghts..为了让这些光标停留在行尾,这样我就可以在可以具有不同长度的文本之后添加结束字符。

There must be an option for multicursors somewhere but neither Google nor SO hasn't provided me with what I'm looking for...某处必须有一个多光标选项,但谷歌和 SO 都没有为我提供我正在寻找的东西......

I have the open source Vscodium version.我有开源的 Vscodium 版本。

Found it, I'm not sure how it works without vim plugin, but with it: it works perfectly this way :找到它,我不确定没有 vim 插件它是如何工作的,但是有了它:它以这种方式完美工作:

  • In edit mode, it gets to the the cursor restarts the line在编辑模式下,它到达 cursor 重新启动该行
  • In command mode, the cursors now stop at the end and beginning of the line.在命令模式下,光标现在停在行尾和行首。

That is pretty useful, I can now de-align the cursors when arriving at the end of a line, and straighten them up by getting at the start of the line.这非常有用,我现在可以在到达行尾时取消对齐光标,并通过到达行首将它们拉直。

Not sure if it is something basic in vscode or a nice trick, but I'll leave the answer here just in case.不确定它是 vscode 中的基本内容还是一个不错的技巧,但我会在这里留下答案以防万一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM