How to reopen project viewer in IntelliJ IDEA - intellij-idea

I can't figure out how to re-open the tab on the left (solution viewer) in IntelliSense Idea.
Anyone know ?

In the left bottom corner you will find a small icon. You can either move your mouse over it and select Project or click on this icon to toggle the visibility of all tabs (which you can click on to open the corresponding view).
You can also use the shortcut Alt + 1 to toggle the Project View.

Related

Intellij how to add call hierarchy to mouse popup menu?

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

Toolbar buttons disappeared in IDEA

I am using Intellij Idea 2017.2.4 and two buttons on the bottom toolbar have disappeared. The two buttons are "Run" (Alt+4) and "Debug" (Alt+5). I can find them in the pop-up menu in the bottom left corner of Idea either and pressing Alt+4 and Alt+5 doesn't work even though the default keymap setup has not been changed.
Is there a way to get them back without having to reinstall Idea?
It looks like they re-appear on the bottom toolbar and in the pop-up menu when I right-click a file and select either run or debug. The key bindings work again as well.

Keyboard shortcut to navigate between IntelliJ views

In IntelliJ, there are some underlined numbers on the side menus :
1: Project
7: Structure
Like below :
So there is probably a keyboard shortcut which allows to navigate from one view to another by just entering the view number.
I tried the different digits with Ctrl, Ctrl+Shift, Ctrl+Alt etc but could not find the right shortcut.
How can I easily navigate between those views?
The shortcut is Alt + [number]
ps. There's a plugin force-shortcuts if you wanna replace your mouse click actions with shortcuts (https://github.com/treytrahin/force-shortcuts-intellij-plugin). It's super annoying but you learn really fast. And by the way here are such plugins to most editors and IDEs.
ALT+F1 opens a window where you can choose one of the views by pressing the corresponding number.
Info: It actually opens the selected file in the selected view - which is not that bad maybe - but not 100% what you want?
Also there are cool things like pressing C to open a file chosen in Project Explorer directly in Explorer for example.

Add right click menu item inside gutter of vscode

How to add right click menu inside the editor's gutter of vscode.
I want to have a provision to show/hide line numbers option on the right click inside the editor's gutter.
I am not sure about the extension point for this.
Unfortunately, this is not possible, yet.
I have filled an issue, "OnClick event on Gutter #5455" sometime ago, but it is still open, and no Milestone defined.

How to automatically navigate to current class in IntelliJ IDEA Project Tool Window?

I would like to have a keyboard shortcut in IntelliJ IDEA that has the following effect: the tree in the project tool window expands to show the currently open class (or file), and this class becomes selected in the tree.
Is this possible?
Navigate (View in older versions)| Select In... (Alt+F1), Project View (Enter).
It's also possible to enable Autoscroll from Source option in the Project View so that current file is automatically selected.
IntelliJ IDEA 2019
Left click on the wheel > Always Select Opened File
There is also: Open Files with Single Click - the selected file from the tree view will be opened in the right side.
Old IntelliJ versions
Right click on Project/Packages area > Autoscroll from Source
or
Left click on the wheel > Autoscroll from Source
There is also: Autoscroll to Source - the selected file from the tree view will be opened in the right side.
Try
Alt F1(Select Target dialogue) + Enter.
Click at this icon on the top of tree-box.
you can do this also using the upper dynamic menu that change for every opened file. just click twice on the last folder and the file will be on the same folder branch
also good for pycharm
You can also make your own key combo to the "select in tree view" via prefs. I often do: shift + cmd + a and then just write select in.. and then press enter.