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

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:

Related

Intellij vcs plugin, view changed files AND file changes in the same window

I normally do git diff for this but want to leverage the intellij gui.
The Version Control tab just shows me all the files that changed:
To view the actual changes I have to select a file and choose "Show Diff".
This opens another window. Now from this other window if I want to see changes for another file I have to click this button then open the other file:
I don't like that. Is there a way to have this in the same pane? Where on the left I see a list of the changed files and I just have to select the file to see its changes? Otherwise its very clunky and unusable for being able to see a tree of changed files and selecting the one's changes I want to see
Just found it, I wanted "preview diff"

What is the use of autoscroll to source and and autoscroll from source features in Intellij IDEs?

I was looking for how to show the open files in project view and found theses two features, I want to know what does the above mentioned features do?
Explaining this simply,
Autoscroll to Source
Whenever you click on a file name in the Explorer Window, the file will be brought into focus on the editor. If the file is not open, it will be opened.
Autoscroll from Source
If you select a file in the Editor, that fill will be scrolled to and highlighted in the Project Explorer.
From the manual,
Autoscroll to Source
If this option is on, IntelliJ IDEA automatically navigates from a file (or a class member) selected in the Project tool window to the corresponding source file (or its fragment) in the editor. If the corresponding file is not currently open, it will open automatically.
Autoscroll from Source
If this option is on, IntelliJ IDEA automatically navigates from a file in the editor to the corresponding node (file, class, field, method, etc.) in the Project tool window.
https://www.jetbrains.com/idea/help/project-tool-window.html

Highlight file opens up file in a preview window functionality instead of double click

Coming from a Visual Studio environment and Xcode environment, if you highlight a file on the project window (LHS), the file opens. IntelliJ doesn't open a file until you double click it.
It's kind of a different feel since it opens it up in a new tab each time vs just using the last active window or a preview window to flip between files. Is there a way to make it more like VS or Xcode that where highlighting the file actually opens the file in the current window?
There is Autoscroll to Source option in the project view settings. Unfortunately it doesn't open the focused files in the current tab, but in new tabs.
I haven't found an option to change this behavior anywhere, but there is already a feature request on IntelliJ's YouTrack asking for this, so feel free to vote for it :)

IntelliJ IDEA - detach editor window

I have recently removed tabs from my IntelliJ setup, because with all the features available to navigate between files, who needs them?
The issue is, the normal way of detaching an editor window would be to drag the tab onto another screen (or area). There doesn't appear to be anything in the key mappings for detaching an editor window. Is there a way of doing this via the keyboard?
The keyboard shortcut your are looking for is SHIFT+F4 (the action assigned to this shortcut is called Open Source in New Window. When you invoke this action the currently opened tab (file) will be opened in new editor window. However the file will remain opened in the main window too, but I believe that this is as close as you can get to the functionality you describe, at least for now.
Option 2
Open the "Open class" dialog using CTRL+N search for a class you want to open in detached window and hit CTRL+SHIFT+ENTER. That will open the class in a new editor window.
Unfortunately this seems to work only for Java classes and not for other files (CTRL+SHIFT+N dialog). I created a bug report for the last problem, so if you think it might be useful, feel free to vote for it.

Double-click to open in external editor in Xcode 4.2

In Xcode 3 there was a preference to choose which external editor you wanted particular file types to open in. I could open .m files in TextMate if I wanted to do something quick using that editor. That preference is gone in Xcode 4. Before, I could single-click on a file in the navigator to have it open in Xcode, or double click to have it open in my chosen editor. In Xcode 4, a double click opens a window with a big icon. This is especially useless for sqlite files:
Of course, I can right-click on a file in the navigator and choose "Open with External Editor", but I'd like to be able to just double-click. Is there any way to get the old behaviour back?