Intellij如何添加调用层次结构到鼠标弹出菜单?(Intellij how to add call hierarchy to mouse popup menu?)

编程入门 行业动态 更新时间:2024-10-06 04:08:10
Intellij如何添加调用层次结构到鼠标弹出菜单?(Intellij how to add call hierarchy to mouse popup menu?)

有没有办法在Intellij中添加Call Hierarchy到鼠标弹出菜单? 我使用它很多,并希望它在鼠标右键单击弹出式菜单上可用。

Is there a way to add Call Hierarchy to mouse popup menu in Intellij? I use it a lot and hope it is available on the mouse right click popup menu.

最满意答案

这适用于Intellij IDEA Ultimate 2018.1.3:

文件菜单中选择设置.. 在左侧面板中选择外观和行为>菜单和工具栏 。 在右侧面板中展开“ 编辑器弹出菜单”条目。 选择该菜单的最后一项,这对我来说是JSP Actions 。 现在应该启用右侧的一些按钮。 点击Add After ...按钮:

callHierarchy1

选择操作添加”对话框打开。 导航到“ 呼叫层次”条目:

展开主菜单项,然后展开导航条目。 向下滚动并选择Call Hierarchy条目。 单击确定关闭选择操作添加对话框。

在菜单条目列表的末尾,现在应该有一个用于“ 呼叫层次结构”的新条目。

点击确定关闭设置窗口。 将鼠标光标置于编辑器窗口中的某个方法上,右键单击并从弹出式菜单的底部选择浏览调用层次结构

mouseMenu

This works on Intellij IDEA Ultimate 2018.1.3:

From the File menu select Settings... In the left panel select Appearance & Behavior > Menus and Toolbars. In the right panel expand the Editor Popup Menu entry. Select the final entry of that menu, which (for me) was JSP Actions. Some buttons on the right should now be enabled. Click the Add After... button:

callHierarchy1

The Choose Actions To Add dialog opens. Navigate to the Call Hierarchy entry:

Expand the Main menu entry, then expand the Navigate entry. Scroll down and select the Call Hierarchy entry. Click OK to close the Choose Actions To Add dialog.

At the end of the list of menu entries there should now be a new entry for Call Hierarchy.

Click OK to close the Settings window. Position the mouse cursor over a method in the editor window, right click and select Browse Call Hierarchy from the bottom of the popup menu:

mouseMenu

更多推荐

本文发布于:2023-07-09 10:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1085549.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:鼠标   弹出   菜单   层次   结构

发布评论

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

>www.elefans.com

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