[英]Smart commenting in an IDE (e.g. Netbeans)
Is there a way to mark a line of code which you can afterwards easily find by color, click or something similar? 有没有一种方法可以标记一行代码,之后可以通过颜色,单击或类似内容轻松找到?
Use-case: Suppose I want to mark every occurence of the word "radius" as to investigate how many radii are used so that I can differentiate clearly which one is which. 用例:假设我要标记“ radius”一词的每次出现,以调查使用了多少半径,以便我可以清楚地区分哪个是哪个。 In this case I would want to go through multiple files and mark the lines with the occurence of "radius" and afterwards (having marked -let's say- 32 radii) smartly go through them.
在这种情况下,我要遍历多个文件并以“ radius”的出现标记行,然后(巧妙地标记为“让我们说32半径”)通过它们。
I'm specifically programming with JAVA in Netbeans. 我专门在Netbeans中使用JAVA进行编程。 But any other IDE or even language would also be welcome.
但是也可以使用任何其他IDE甚至语言。
Both IntelliJ IDEA and Netbeans have a full project search ( ctrl + shift + f ) IntelliJ IDEA和Netbeans都具有完整的项目搜索( ctrl + shift + f )
I don't know how Netbean's approach looks like, but IntelliJ lists all occurrences of the string you type in, letting you easily jump to any occurrence you select. 我不知道Netbean的方法如何,但是IntelliJ列出了您键入的所有出现的字符串,使您可以轻松跳转到您选择的任何出现的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.