Notepad++ - 使函数“可点击"? [英] Notepad++ - make functions "clickable"?

查看:41
本文介绍了Notepad++ - 使函数“可点击"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想这可能有用,但我找不到方法.

I just thought about this maybe being useful, but I can't find a way to do it.

在 Notepad++ 中,有没有办法让函数名称可点击"——即让它们链接,这样如果你点击它们,它会自动带你到它的定义(最好是跨越整个代码库)?

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)?

推荐答案

目前没有插件提供可直接点击的函数名称.但是您可以尝试使用插件 SourceCookifier 和一些 N++ 调整.打开 N++ 的contextMenu.xml"并在某处添加这一行:

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:

<Item PluginEntryName="SourceCookifier" PluginCommandItemName="Go To Definition"/>

至少有一个解决方案,只需单击 2 次鼠标 > 右键单击​​ > 上下文菜单 >转到定义".我宁愿说当光标位于一个符号上时,只需按 CTRL + SHIFT + RETURN,该符号也会执行转到定义",但由于您要求使用鼠标按钮方法..

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..

/编辑

这几天插件更新了.这是变更日志中的一个片段:

There has been an update of the plug-in these days. Here's a snippet from the changelog:

0.7.1

-new: 选项按ctrl + 鼠标左键转到定义"

这篇关于Notepad++ - 使函数“可点击"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆