How do I quickly resolve namespaces in Visual Studio 2015 - asp.net-mvc

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.

Related

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

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.

Spyder - Editor panel shown twice after unknown shortcut

I entered some shortcut in Spyder from the WinPython\WPy64-3950 collection.
I think "Ctrl+Shift+..."
Now there's a second editor open, that I can't get rid off so far..
It's not exactly mirroring the first one. I guess it is usually used
to keep a good overview over your code, especially if the code is longer.
I want to close this second editor panel. None of the following shortcuts seem to help:
http://e-callisto.org/cospar2018/SpyderKeyboardShortcutsEditor.pdf
Any ideas?
To close an Editor panel you can go to the options menu of the panel and there you should find the action Close this panel. The shortcut for the action is Alt + Shift + W:

No dropdown arrow to select target branch when merging in visual studio 2019

In visual studio, I'm working in a branch and want to merge downward into my branch. However when I try to merge down, where it asks for source and target branch, there is no dropdown arrow to select a different target branch.
I've tried resizing the window, making it full screen, restarting my PC, making sure Visual Studio 2019 is up to date, pretty much everything I can think of. Any thoughts on what could be causing this?
The image tag doesn't seem to be working, but here is a URL to a screenshot of the issue: https://imgur.com/a/qQNL19J
Based on my test, I couldn't reproduce this issue on my machine.
It could work as expected in Visual Studio (version: 16.4.0 , 16.7.5, 16.7.6)
Here is the expected Tool screenshot:
From your screenshot, not only the drop-down arrow, it doesn’t seem to show the Browse option.
As far as I know, the way the machine’s screen is displayed may cause this issue.
You could navigate to Windows Settings -> System -> Display -> Scale and layout and change the settings.
Here is my screen setting, you could refer to it:
You can reduce the enlarged scale to check if it works.

How to edit tooltip opacity in vscode? (how to change the intellisense suggestions transparency)

I am a beginner in vscode.
When I write code the tooltip annoys me, because I use divided screen in macOS
so I want to make the tooltips semi-transparent without press ctrl
like this image:
Try this colorCustomization in your settings:
"workbench.colorCustomizations": {
"editorSuggestWidget.background": "#ff000060"
}
The last two digits, in this case 60 are opacity. There a few more editorSuggestWidget options to change too.
https://wannabedev.tistory.com/37
I found it, here is a screenshot:
Unfortunately, that's a visual studio feature not yet available in visual studio code.
At present, the only option is to disable the pop-up altogether, in which case you don't get the hinting, which is not ideal.
There are a lot of threads on GitHub about the position and opacity of the tool tip (search terms like 'tooltip intellisense position' you'll find a bunch). You can add your voice there.

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