gpt4 book ai didi

atom-editor - 在 Atom 中使用多个游标时有没有办法增加数字?

转载 作者:行者123 更新时间:2023-12-03 05:53:08 25 4
gpt4 key购买 nike

Animated GIF showing input being typed into an editor. The letter 'a' is on six separate lines. The lines are all selected. The text "my repetitive task 1" is typed and appears on all six lines at the same time. The 1 on line 2 is changed to 2, the 1 on line 3 is changed to 3 and so on.

我发现自己一遍又一遍地这样做。这可能非常耗时。有哪些选项可用于此?

最佳答案

Increment Selection包可能就是您正在寻找的。它似乎可以使用多个游标,因此应该非常接近您的用例:

Select a block of text and hit ctrl-shift-i to replace it with incrementing numbers

  • Uses first line's number if any
  • Works with multiple cursors

Increment Selection Demo

关于atom-editor - 在 Atom 中使用多个游标时有没有办法增加数字?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32275171/

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