Open highlighted file in Xcode Project Navigator - keyboard-shortcuts

I have selected a file in the Project Navigator, default shortcut is ⌘+1.
Then through something (like focus to debugger, jump to another file with the top bar) the open file in the source editor changes.
I know I can ⌘+J and the open file in the Editor will be selected in the project navigator.
But how to make it the opposite way, jumping to the selected file, without using the mouse?

There is no shortcut and since it is not always the same direction (up or down) nor the same steps it can not be automated.
But you can navigate with the arrow keys in the project navigator at least without loosing the highlight of the last opened file.
So instead of Reveal in project navigator, use cmd+1 to focus the project navigator and then just use up/down to navigate.
With left you can navigate to the next higher group.

Related

Zerobrane hotkeys to jump between editor tabs and other panes within IDE

Using Zerobrane, are there any defined hotkeys or keymaps that will jump between panes within the IDE? Like, some key to jump between several files open as tabs (jump between tabs). Another is jumping from editor tab pane over to the project pane, etc...
To jump between tabs you can you Ctrl-PgUp/PgDn or Ctrl-(Shift-)Tab. Also, Ctrl-P will open a command panel with the list of currently open files, and after selecting a file from the list press Enter to jump to the tab with that file.
Jumping to Project tab and Console is not available, but moving between tabs there can be done using the same Ctrl-PgUp/PgDn combination. I'll consider adding some hotkey to move between open panes.
Update 7/13: Something like this may work as a simple workaround (add to the IDE config file as Edit > Preferences > Settings: User):
ide:SetHotKey(function()ide:GetProjectTree():SetFocus()end, "Ctrl-Alt-P")
ide:SetHotKey(function()ide:GetOutlineTree():SetFocus()end, "Ctrl-Alt-O")
Other panes (Output/GetOutput(), Console/GetConsole(), etc.) can be done in a similar way.

Navigate to the changed line of code in a file in Intellij Idea

I have a huge class in which I changed couple of lines in different places. Is there a way(shortcut) to navigate through changed lines of code in the file and not to scroll all the way up/down?
If you edit a file that is under version control, IntelliJ IDEA provides several ways to move back and forth with the updates. In particular, you can use the navigation commands (Navigate | Next / Previous Change.), keyboard shortcuts (⌃⌥⇧↓/ ⌃⌥⇧↑), and the change markers.
To navigate to the place of your last edit, press ⌃⇧⌫ or select Navigate | Last Edit Location from the main menu.
https://www.jetbrains.com/help/idea/navigating-through-the-source-code.html#20c948f4
I'm using Control + Alt + Left|Right Arrow for current KeyMap
Refer this screen-shot for your reference in case you are having different mapping.

How do I change the default settings in IntelliJ to open a file in the current tab

I find the UX of IntelliJ to be extremely annoying (especially since I have been using XCode until now and really love it). Specifically the fact that I need to "double click" a file in order to view it, and moreover that the file is opened in a new tab.
The behaviour that I desire is that when selecting a new file from the file navigator, the file open "inside" (replace) the currently viewed tab. I don't want to have to double-click the file from the navigator and I don't want the file to open in a new tab.
So for instance if the current tab is showing "File1.xxx" and I were to select (Single-click) "File2.xxx" from the navigator, the tab would now show "File2.xxx" and not "File1.xxx".
I am not aware of how to define this behaviour in the settings screen.
I am using IntelliJ Ultimate 2017.2.2 on a Mac.
A couple of examples of what I want:
Like in XCode:
Like in Chrome:
Like in Safari:
Like in Finder:

How to reopen project viewer in 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.

Is there a shortcut to delete the currently open file in PHPStorm?

When I navigate to a file deep in directories with Ctrl+Shift+N, I see that the file can be deleted, so I navigate to the project pane, and open all the nested directories and then finally delete the file, which is annoying.
Is there a keyboard shortcut to just delete the file currently open in the editor?
Yes, there is:
Press Alt+Home to focus the navigation bar. (⌘+↑ on Mac)
Then press Delete. (⌘+⌫ on Mac)
Even if the navigation bar is turned off, it'll pop up over the editor window.
External tools can solve this.
Create an external tool. The program to run is rm, and for the parameters use the $FilePath$ macro. I also tell it not to open the console.
Add a shortcut in keymap to this external tool to quickly delete the current file open in the editor.
Is there a keyboard shortcut to just delete the file currently open in the editor?
No -- wrong context. "Delete" will work with file when in the right context (e.g. Project View); when editing file (Editor is focused) it will be just deleting text.
so I navigate to project pane, and open all the nested directories and finally delete the file, which is annoying.
Navigate | Select In ... | Project View (Alt + F1, 1 on Windows/Linux using Default keymap)