How to get Visual Studio 2019 to compare files side by side again? - visual-studio-2019

I recently up dated my Visual Studio 2019 to version 16.11.18 and now when I compare files (git Compare with unmodified... or Tools.DiffFiles) it shows the differences in one window instead of the side-by-side view I used before.
How do I change it back so one version is on the left and the other on the right?
I tried googling but could not find anything.

The button to change this might be hidden out of view in the toolbar. Click the arrow for the "Compare Files Toolbar options" and then add or remove buttons. Toggle the Compare View mode option:
This should add this icon to the toolbar, and then from there you can switch modes:
Alternatively, you can use the keyboard shortcut Ctrl + \, Ctrl + 2 to change back to side by side mode.

Related

How to edit storyboard in Xcode

Every now and then, I see tutorials allowing to add components to a storyboard by clicking a plus sign on the right up corner of the editor:
Bu I do not have this button. And it seems that there is no menu available.
I have to say that I'm trying to modify the storyboard outside of any project by opening the file alone.
Any help appreciated.
The plus button should be available on the right side of Project Header Section[Tool Bar] as Shown in the image
Based on the selected file different screens will be opened when we click on the + button.
We can also use the keyboard shortcut cmd+shift+L
Verified on Xcode Version 14.1 (14B47b)
Update:
As this option is available on the Toolbar, it may not be available if the toolbar itself is hidden. To toggle the visibility of toolbar we can use the shortcut cmd+option+T

In Visual Studio 2019 how to ensure tab stays open after Go-To-Definition

In Visual Studio, if I Go-To-Definition on e.g. a class by Ctrl+Click or F12, the class is opened in a new tab but the tab is not part of the open tabs (not sure if that is the correct wording). The tab heading is to the right. The tab heading has a little button "Keep Tab Open Ctrl+Alt+Home".
If I make no edits in the opened tab and navigate back using Ctrl-Minus, the new tab is closed.
What do I need to do to always have Go-To-Definition windows open and never close e.g. when navigate away?
Here some pictures #hellip;
This is the start situation:
This is the actual situation after Ctrl+Click on Class1:
This is what I expect:
Tools -> Options -> Environment -> Tabs And Windows
Uncheck "Allow new files to be opened in the preview tab"
You may need to restart Visual Studio for the setting to take effect.
Click on the enlightened square in the opened tab. It will show the pin. Click on the pin so that it will always remain there.

Is there a way to hide all panels in visual studio (not full screen mode)?

I know there is a way to have Visual Studio in full screen : CtrlAlt + Enter.
But in this configuration, you cannot set the editor as a normal window, to move it for an example and to use other applications in the same time.
Is there another way to have the window in configuration that i want ?
Drag the document window out of the IDE window and it becomes a standalone window.
The main window can then be minimised.
You can even drag multiple documents into the new window and still use all the tab layout options are available in such secondary windows (including tool window docking, eg. a second solution explorer window)..

How do I quickly resolve namespaces in Visual Studio 2015

When I type a method for which the namespace has not been imported, I get a red wavy underline (aka squiggly red line) that indicates there is an error. Using Visual Studio 2012, I can right click this red line and quickly select the desired namespace using Resolve > using System.Text.RegularExpressions from the right-click context menu. I also have the option to fully qualify my method with the complete namespace.
Using Visual Studio 2012:
In Visual Studio 2015 preview, this option is missing from my right-click context menu. Does anyone know how to enable this -or- quickly choose the namespace I want?
This menu has been changed and a new feature was added. The original menu item has been replaced by "Quick Actions...", which brings up its own sub-menu where I can find the things I'm looking for such as importing namespaces and refactoring options:
#dotnetstep is absolutely correct.
For an even faster resolution process:
Place the text cursor on the word that is squiggled in red.
Press Ctrl + . (period).
Hit enter.
Enjoy quick namespace resolution :)
This option very much present over there but it change little bit. You have to do following thing.
You can see yellow bulb and arrow. Just click on that arrow and you see the option or double click on Regex it will popup yellow bulb on left side of that line. Move cursor on that bulb icon and you see option.

How can I maximize the editor pane in IntelliJ IDEA?

In Eclipse, I can type Ctrl+M or click the maximize icon in the editor pane to make the editor pane take up the entire Eclipse window, and then again to restore the pane back to its previous size exposing the other panes.
Is it possible to perform the equivalent in IntelliJ IDEA?
To clarify, I'm asking about hiding all other tool panes to show only the editor pane. I'm not asking how to go to distraction-free mode, because this is mode is completely "full screen", hiding all toolbars, window decorations, etc.
The closest thing would be to hide all tool windows by invoking the Hide All Tool Windows action. The shortcut for that is Ctrl + Shift + F12 (Default keymap).
This will hide all tool windows, effectively maximizing the editor window (though not full screen). The IntelliJ menu bar, toolbar, breadcrumb and tab bar will still be visible.
I'm using IntelliJ 11.1.2 on Kubuntu 12.04 LTS with the Default keymap.
14.0.3 on MacOS X
It's Cmd + Shift + F12 in IntelliJ IDEA 14.0.3 on MacOS X.
UPDATE on 2015-03-24:
IntelliJ IDEA 14.1 now has support for Distraction Free Mode. You can invoke it by clicking View > Enter Distraction Free Mode. In this mode, IntelliJ hides everything but the menu. For more details, follow their video detailing the new feature: https://www.youtube.com/watch?v=uVwE8MFgYig.
If you want to maximize a pane , select that pane (by clicking inside or on its title bar) and then use the shortcut "Ctrl+Shift+Quotes"
You can double click anywhere on the tab title bar of the editor pane.
All answers work for only hiding other tools. If you have more than one editor pane and you want to maximize only one editor pane (hide all tolls and hide all other editor panes), it is not possible right now.
PyCharm version: 2018.2.7
I use Ctrl-Shift-F12("Hide All Windows") toggle between maximum and normal modes of the editor.
Using IntelliJ 14.1.5
If you want to maximize the editor window AND full-screen the app, you can create a macro with the following two commands:
Toggle Full Screen Mode
Hide All Tool Windows
And then assign a hotkey to the macro. Here's how I did this:
File > Settings > Keymap
Use the search bar to search for the two commands above. Assign obscure hotkeys to those.
Edit > Macros > Start macro recording
Hit the two obscure hotkeys you just assigned: this should max the editor and full-screen the app
Stop recording. Name the macro
Open File > Settings > Keymap again. Find the Macros section, find your macro, assign a nice hotkey to it.
I just assigned ^M(ctrl+M) to Main menu | Window | Active Tool Window | Hide All Tool Windows under preferences(by clicking cmd,). This worked for me exactly like eclipse.
something similar can be achieved by opening your tab in a new window.
The default hotkey for that is shift+f4.
the editor tab remains in the main app window as well, and the new window appears on top of the main app window.
This has already been answered, but since when I google "android studio maximize tab" this is the first answer I see, I'm going to add my two cents.
I hate the keyboard shortcuts since, at any given time, I have 1 hand on my keyboard and 1 hand on my mouse. Having to let go of my mouse to hit a 3-key combination to maximize the current tab is not a shortcut. What I was looking for was an Eclipse-style behavior: double-click the tab to maximize. Here's how to do that:
In Android Studio, under Preferences, go to Keymap->Main Menu->Window->Active Tool Window. Right-click the "Maximize tool window" mapping and select "Add mouse shortcut."
For "Click Count" pick "Double Click" and then double-click on the "Click Pad" mouse icon.
Click OK out of the menus and you should now be able to double-click on any tab and it will be maximized. Double-clicking again will minimize it.
Coming from Eclipse to IntelliJ, this was one of the most frustrating aspects I've had to deal with.
full screen plugin is availble for IntelliJ Idea...
https://github.com/jfim/ideafullscreen
If you need to use the same shortcut like Eclipse Ctrl+M, to minimize/maximize the active editor window,
You can follow the below steps:
Open (File > Settings...) or click ( Ctrl+Alt+s )
Select Keymap
Search for "Hide All Tool Windows"
Change the default shortcut to Ctrl+M
Then you will be able to use the same shortcut as Eclipse.
This is quite an old question and the distraction free mode wasn't exactly what I wanted. This is because it does not hide other editor windows. With 2021.1 EAP this issue has been resolved and maximising the editor hides all other editors but the active one.
For people using IdeaVim trying to emulate the <leader> z behavior of tmux, you can use the following mapping:
map <leader>zz <Action>(MaximizeEditorInSplit)
I searched for something like ctrl+b zin tmux. For me, the similar task solved by key combination shift+f4. It opens your tab in the separated window (which can be closed as usual, alt+f4). My PyCharm version:
PyCharm 2019.2 (Professional Edition)
Build #PY-192.5728.105, built on July 23, 2019
Runtime version: 11.0.3+12-b304.10 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 725M
Cores: 8
Registry:
Non-Bundled Plugins:

Resources