如何使Eclipse不编辑“查找下一个”找到的所有事件?(How do you make Eclipse not edit all the occurrences found by “Find Nex

编程入门 行业动态 更新时间:2024-10-14 08:22:43
如何使Eclipse不编辑“查找下一个”找到的所有事件?(How do you make Eclipse not edit all the occurrences found by “Find Next”?)

当我使用Cmd+K转到下一个选定单词时,Eclipse会在我浏览的单词副本之前留下这些红色“游标”。 如果我然后编辑我找到的最后一个事件,Eclipse“帮助”编辑我以相同方式导航的所有事件。 这会使我目前没有看到的文件部分出现损坏,这真的很令人愤怒。

我想禁用这个“功能”,但我还不知道该怎么称呼它,所以我不知道如何找到关闭它的设置。 搜索Eclipse首选项的“发生”仅为每个编辑器插件提供了各种版本的“标记出现次数”,在未选中时不会禁用此行为。

编辑:这是一个显示我正在谈论的行为的视频: https : //youtu.be/8xeKRLyGSLg

When I use Cmd+K to go to the next occurrence of the selected word, Eclipse leaves behind these red "cursors" right before the copies of the word that I navigate through. If I then edit the last occurrence that I find, Eclipse "helpfully" edits all the occurrences that I've navigated through in the same way. This leaves corruption in parts of my file that I'm not currently looking at, which is really infuriating.

I want to disable this "feature", but I haven't got a clue what to call it, so I don't know how to find the setting that turns it off. Searching the Eclipse preferences for "occurrence" only gives various versions of "Mark Occurrences" for each editor plugin, which doesn't disable this behavior when unchecked.

EDIT: Here's a video displaying the behavior I'm talking about: https://youtu.be/8xeKRLyGSLg

最满意答案

PyDev并没有真正给出这个功能,它是LiClipse( http://www.liclipse.com/multi_edition_video.html )添加的功能。

使用Ctrl + K完成链接后,如果您不希望多版本发生,可以按ESC键删除这些链接(这样当您编辑一个实例时就不会编辑其他版本)。

我必须说这是关闭的第一个请求...我很确定,因为我只是看了一眼,并没有设置这样做 - 所以,不幸的是,直到下一个版本,你必须要么活着有了它,如果你不想要多版本发生或者使用PyDev的普通Eclipse安装,请记住按ESC,但你也没有其他LiClipse的好处,例如textmate包,垂直缩进指南,主题集成,等等

不过,请注意,理想情况下,我会说你应该习惯它,因为它可以节省时间 - 虽然我会实现设置,以便为下一个版本关闭它,因为它应该是真的在那里;)

This isn't really given by PyDev, it's a feature added by LiClipse (http://www.liclipse.com/multi_edition_video.html).

After the link is done with Ctrl+K, you can press ESC to remove those links if you don't want the multi-edition to happen (so that when you edit one occurrence you don't edit the others).

I must say this is the first request to have that turned off... I'm pretty certain as I just took a look and there's no setting to do that -- so, unfortunately, until the next release, you have to either live with it, remembering to press ESC if you don't want the multi edition to happen or use a plain Eclipse install with PyDev, but you'd also be without other LiClipse benefits, such as textmate bundles, vertical indent guides, theming integration, etc.

Still, note that ideally, I'd say you should get used to it as it can be a real time-saver -- although I'll implement the setting to turn it off for the next release anyways, as it's something that should really be there ;)

更多推荐

本文发布于:2023-08-02 09:32:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1373110.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编辑   事件   Eclipse   Find   occurrences

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!