[英]Intellij shortcut - how to open at project view current class?
I just want to know if it is possible at Intellij open Project view
for class which is currently opened.我只想知道是否可以在 Intellij 打开当前打开的类的Project view
。 Using short cut.使用捷径。
Steps:脚步:
Ctrl
+ N
) => type String
使用 find 类快捷方式 ( Ctrl
+ N
) => 键入String
String
class from JDK.按 JDK 中的String
类。 It has next looking:它有下一个看: Alt
+ 1
=> It will open Project view
where it was active last time.现在,当按Alt
+ 1
=> 它将打开上次处于活动状态的Project view
。I tried to find it at internet but without success.我试图在互联网上找到它,但没有成功。
Any suggestions?有什么建议?
You can click the settings icon in the project view and check Autoscroll from source .您可以单击项目视图中的设置图标并选中Autoscroll from source 。 That way any class (or any file for that matter) you open will be automatically selected in the project view.这样,您打开的任何类(或与此相关的任何文件)都将在项目视图中自动选择。
or if you don't want this to happen always you can click this icon to naviage to the currently opened item in the project view:或者,如果您不希望始终发生这种情况,您可以单击此图标以导航到项目视图中当前打开的项目:
Unfortunately I don't see any command in keymap section to bind this action to a keyboard shortcut.不幸的是,我在键盘映射部分没有看到任何命令将此操作绑定到键盘快捷键。
Replying to an old thread, but may help someone in the future.回复一个旧线程,但将来可能会帮助某人。 I am using IntelliJ 2020.2 and now I can see a keymap for the 'Select Opened File' (earlier 'Scroll from Source') button mentioned by @Bohuslav Burghardt.我正在使用 IntelliJ 2020.2,现在我可以看到@Bohuslav Burghardt 提到的“选择打开的文件”(之前的“从源代码滚动”)按钮的键盘映射。 It's它是
Alt + F1 and then 1 (submenu item 1) Alt + F1 然后是 1(子菜单项 1)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.