gpt4 book ai didi

visual-studio-code - 如何将光标放在 Visual Studio Code 中所有选定行的末尾?

转载 作者:行者123 更新时间:2023-12-04 14:56:40 25 4
gpt4 key购买 nike

我有以下代码:

CList.Add( new CodeStuff(941,"National List Limit
CList.Add( new CodeStuff(945,"Code not used
CList.Add( new CodeStuff(946,"State Building Height Limit
CList.Add( new CodeStuff(993,"Building Material Type
CList.Add( new CodeStuff(1033,"Not used - requirements changed
CList.Add( new CodeStuff(1034,"Current Unacceptable Applications
CList.Add( new CodeStuff(1035,"Historical Unacceptable Applications

我使用 Alt+Shift+鼠标按钮和输入获得了第一位。如何添加 ");到每一行的末尾?

我不得不使用 Notepad++ 宏录制来做到这一点,这是我仍然坚持使用该编辑器的唯一原因。如果有人能告诉我如何在 VSCode 中做到这一点,我将不胜感激。

最佳答案

不完全确定我理解,但 Shift-Alt-I 会在所有选定行的末尾放置一个光标,因此只需选择您的文本和 Shift-Alt-I(即末尾的“眼睛”)。然后输入 ");将把它放在每一行的末尾。

- - - - - - - - - - - 编辑 - - - - - - - - - - - - - - ----

我看到了 Column Selection Mode (在 v1.43 中)现在可以很好地执行此操作(启用 Selection/Column Selection Mode)取决于您的选择方向[不幸的是,gif 在显示光标方面做得很差,但它们都在行的开头或结尾,具体取决于选择方向】:

column selection cursors

关于visual-studio-code - 如何将光标放在 Visual Studio Code 中所有选定行的末尾?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49931896/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com