Xcode 4 Window question - objective-c

Is it possible to open multiple windows in Xcode 4 if I want to have multiple files side by side ?
Thanks

You can double click a file in the side panel to open it in its own window. You can also hold down command and double click a symbol within a file to open it's definition in a new window.
There is also the assistant mode where you can have two files open side by side (but in the same window).

Related

IntelliJ IDEA current file tab closes on opening a different file

Every time I open a new file (single click), the existing file closes by itself. It started happening in the latest version. How do I fix this?
In the Project tool window, click the three vertical dots and uncheck Enable Preview Tab option (which is on by default)

Shortcut for opening the definition file in a split vertical group in vscode

Are there any shortcuts to open the definition (e.g.: a method definition) in a split vertical group? By ctrl + click on the usage of method, it opens in a new tab. It bothers me, because I have to leave my own tab.
(I know that after opening in a new tab, by pressing ctrl + \ it will be open it in a new group, but this also has the same problem: I lose my own tab, and a second problem: when I want to close the definition file, I have to close it from both the 2nd group and the 1st group.)
Are there any shortcuts to open the definition file directly in a new group?
Ctrl+Alt+Click seems to open the definiton file in a split editor.
It'll open to whatever you have this setting:
Workbench > Editor: Open Side By Side Direction // options are right and down
Note that it'll directly open the definiton file in a split editor only if there is a single possible defintion file. For example, you may have both a source and a dist folder with the same files in them (after some task runner commands perhaps). If there is more than one option, vscode will instead open a peek window with the multiple references listed to the right side. You can Ctrl+Click on whichever of those you want to open to the side.

In Intellij IDEA how to compare 2 text files that are not part of an open project

I would like to compare 2 files in intellij. Both files are not part of a specific project.
Is there a way to do so?
I am running Intellij 15 and 16.
The following works for me in IntelliJ IDEA Ultimate 14.1.7 on Windows:
Open the first file in the IDE (either by dragging from Windows Explorer into the window, or by File / Open).
In the view menu, choose "Compare With…"
In the "Select Path" dialog that appears, select the second file (either directly, or by dragging from Windows Explorer into the dialog).
It then opens up in the traditional file comparison pane. If you try to edit one of the files, it presents the usual "Are you sure you want to edit a file that's not in your project" dialog, which one can accept if that's what one is trying to do.
You can use the "compare with clipboard" feature.
From https://www.jetbrains.com/help/idea/2016.1/comparing-files.html#clipboard:
Comparing a File in the Editor with the Clipboard Contents
Open the desired file in the editor.
Right-click the editor pane and
choose Compare with Clipboard on the context menu.
View and manage
differences in the Differences Viewer for Files.
You can use intellij to compare 2 files/clipboard/blank text etc
Use command Shift+Command+A to search Actions
Type "Open Blank Diff Window" to compare random text
type diff for all diff options.
I use this on the command line (with IntelliJ IDEA CE on a Mac):
/Applications/IntelliJ\ IDEA\ CE.app/Contents/MacOS/idea diff ~/Junk/file1.txt ~/Junk/file2.txt
Window > Editor Tabs > Split Vertically
Is that what you're looking for? It's what I was looking for.
Worked for me on Mac OS High Sierra + IntelliJ IDEA 2018.3
- File -> Open
- Select file 1
- View -> Compare with ...
- Select file 2
To use intelli's difference comparison between 2 different files, you can use the Compare With (Right click the file in Project window). There is also an option to Compare File in Editor. To use that option, ensure one file is open and selected, then right click the 2nd file, clicking Compare File in Editor

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

How do I set up IntelliJ on dual monitors?

I have just installed IntelliJ 9.0.2 on a machine running 64-bit Ubuntu 10.04.
How do I get another window to put on my second screen?
I would like to have both an editor and some tool windows on both screens.
All 'windows' inside of IntelliJ other than the code editor tabs have a "Float" option which pops open an independent window which you can drag to anywhere on your screen. This will allow you to manage your IDEA windows however you like.
IntelliJ also allow you to open multiple projects at once. When opening a project with one already opened, you are prompted as to wether you would like it in your current window or a "New Instance". If you choose new instance, it will open up a completely new IntelliJ with the other project in it. This will work for you if you have many projects you work on at once.
IntelliJ 14 and onwards you can select the settings cog and tick floating mode to detach menus, or drag editor tabs off the main window to detach them
If you're running on OSX you'll need to make sure it's not treating the screens as separate spaces, otherwise they'll snap back onto the same window as the main editor when switching between windows.
To do this untick Displays have separate Spaces in the Mission Control System Preferences.
IntelliJ 10 will have draggable & dockable editor tabs. A very nice feature. It's already present in the early access versions.