记事本++ - 使功能“可点击”?
我只是想这可能有用,但我找不到办法。
在 Notepad++ 中,有没有一种方法可以使函数名称“可单击”——即使它们成为链接,这样如果您单击它们,它会自动将您带到其定义(最好是跨整个代码库)?
I just thought about this maybe being useful, but I can't find a way to do it.
Is there a way, in Notepad++, to make function names "clickable" -- ie make them links, so that if you click on them, it automatically takes you to its definition (ideally across an entire code-base)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前还没有插件提供可直接单击的函数名称。
但您可以尝试使用 SourceCookifier 插件并进行一些 N++ 调整。
打开 N++ 的“contextMenu.xml”并在某处添加此行:
至少有一个解决方案可以通过单击 2 次鼠标来获得它 >右键单击>上下文菜单> “转到定义”。
我宁愿说,当光标位于符号上时,只需按 CTRL + SHIFT + RETURN,该符号也会执行
“转到定义”,但既然您要求使用鼠标按钮方法../
编辑
这些天插件已更新。
以下是变更日志中的一个片段:
0.7.1
-新:选项“按 ctrl + 鼠标左键转到定义”
At the moment there's no plugin offering directly clickable function names.
But you could try the plugin SourceCookifier together with some N++ tweaking.
Open N++'s "contextMenu.xml" and add this line somewhere:
At least a solution to have it with 2 mouse clicks > right click > contextmenu > "Go To Definition".
I would rather say simply press CTRL + SHIFT + RETURN when the cursor is on a symbol, which also executes
"Go To Definition", but since you asked for a mouse button approach..
/EDIT
There has been an update of the plug-in these days.
Here's a snippet from the changelog:
0.7.1
-new: option "Go to definition by pressing ctrl + left mousebutton"