简体   繁体   English

IDE中的智能注释(例如Netbeans)

[英]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.

相关问题 如何在 NetBeans IDE 14 中选择 Java Profile(例如 Compact 1、Compact 2、Full JRE)? - How to select Java Profile (e.g. Compact 1, Compact 2, Full JRE) in NetBeans IDE 14? 隐藏IDE调试器中的堆栈帧(例如Java9 StackWalker) - Hide stack frames in IDE Debugger (e.g. Java9 StackWalker) 商业Java分析器相对于免费的分析器具有哪些优点,例如: Netbeans中的一个? - What advantages have a commercial Java profiler over the free ones, e.g. the one in Netbeans? 在例如Chord环中绘制节点 - Draw nodes in e.g. a Chord ring 始终在目标(例如exec:exec)之前运行生命周期阶段(例如程序包) - Always run lifecycle phase (e.g. package) before goal (e.g. exec:exec) 使用该类是否更有效,例如Hashtable而不是接口,例如Map? - Is it more efficient to use the class, e.g. Hashtable than the interface, e.g. Map? JFileChooser-从“计算机”开始,例如C:D:E:驱动器 - JFileChooser - Starting at the 'Computer' e.g. C: D: E: drives 将UTF-8代码(例如,E052E472E04F)转换为文本 - Convert UTF-8 code (e.g., E052E472E04F) to text 使用JAXB Marshaller转义字符(例如引号) - escape characters (e.g. quotes) using JAXB Marshaller Kotlin:获取文件的扩展名,例如“.txt” - Kotlin: Get file's extension e.g. “.txt”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM