Visual Studio - Menu Options - Float Right or Left - visual-studio-2012

I clicked on something in Visual Studio 2017 and now all the dropdown menu options are floating to the left instead of the default right. Below is a print screen of how it should look...
But I get something like this, floats to the left ...
I've gone through the options pretty thoroughly but I can't seem to find the option for this. Does anyone know where the option to control this is?

The direction of the menus in Visual Studio is actually controlled by a setting on OS level. On recent versions of Windows, it's pretty well hidden but you can directly run the following in the Windows -> Run dialog (Win+R) to open the settings dialog:
explorer shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E}
and change the radio button in Tablet PC Settings -> Other -> Handedness to Right-handed.

You can change the horizontal direction that the menus in Visual Studio roll out to by editing the registry as well (useful if the "Other" tab in Tablet PC Settings is not visible on your instance of Windows).
Open the registry (type regedit in the start menu and press Enter).
Navigate to this location:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
If you don't have an entry called MenuDropAlignment, right click and create a new StringValue (REG_SZ) called MenuDropAlignment.
Change the value of MenuDropAlignment to be whichever way you want the menus to open to.
0 = Menus open to right (this is the "normal" way that most people expect the menus to open)
1 = Menus open to left
Once you have finished making this change, close everything and restart your machine.

Related

Device manager does not work (open) after updating Android Studio to 2021.1.1

Android studio's device manager AVD manager works fine in old versions, but in 2021.1.1 version does not open!
Windows 10 and 11 tested
last version flutter
Intel
Sdk manager everything updated
could anyone help?
I still have the same problem with the Bumblebee version, but for now you can use the Search Everywhere feature (you can access "Search Everywhere" by pressing double shift) and type in
"Virtual Device Manager"
then it will works.
This is a temporary solution for now.
I had the same problem, found the solution to return the icon to the toolbar, where it's easy to use it.
I guess it happans to anyone who upgrades from prvious version.
The idea is just to replace the "old" device manager with the new device manager created in 2021.1.1.
Right click the right side of the top toolbar and click the "Customize Menues and toolbars.
In the "Menus and Toolbar" window expand "Main Toolbar"
Expand "Android.MainToolBarActionGroup"
Press the "+" button in the top and select "Add Action..."
In the "Choose Action To Add" windows , search for "Virtual Device manager", select it and press OK.
You will see the the new icon is added.
To make sure it's working you can press OK to close this window and return to Android Studio main screen.
Now, you should have 2 similar icons in the toolbar, only the bubbles will be different.
The old is called "Device manager"
The new one is called "Virtual Device Manager"
Make sure it really works and opens the new Device Manager.
Once it is working , you can go back to the toolbar manger and delete the old icon.
Folow setps 1-3 above
Locate the "Android.RunAndroidAvdManager" item, select it and delete it by pressing the "-" button in the top of the screen.
Close this window and return to main screen.
Step 1: Select FILE (on the top left)
Step 2: Select PROJECT STRUCTURE (<Ctrl + Alt + Shift + S> on Windows/Linux).
Step 3: Select MODULES on the left under Project Settings.
Step 4: Hit the plus (+) button.
Step 5: Add ANDROID and hit OK Button.
Now you can open Device Manager
I too met this problem temp solution this that which wrote Zaid Salam
My version Android Studio -> Bumblebee 2021.1.1 Patch 1
My OS -> macOS Monterey
If you cannot seem to be able to right-click the toolbar as Yahalom mentioned, go to View > Appearance and select Toolbar.
The toolbar will move and a big space will be available on the right to right-click.
As pointed out by the answer above, the update from an older version does not replace the button action correctly.
But to fix it for me (Android Studio on Linux), I had to edit the Navigation Bar Toolbar rather than the Main Toolbar. As the IntelliJ docs mention, the main toolbar is hidden by default.
(Could not comment on the original answer yet, so I had to create a separate response)

How to return item to context menu in Android Studio

In my Android Studio, when I have a cursor on the regular exprssion and if I click Alt + Enter I see a context menu like this
There was an item Check Regexp or something like this but I click accidentaly Disable... and it disappeared. Tell me please where can I find it in android studio to make it return back.
Those menu items are called Intention Actions.
To configure intention settings using the Settings/Preferences dialog
Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or IntelliJ IDEA | Preferences for macOS, and click Intentions under Editor.
In the Intentions page, clear the checkboxes of the intention actions or action c1ategories that you do not currently need.
Selecting or clearing a category affects all intention actions in this category.
Apply changes and close the dialog.
Check for details here

GitBash duplicate taskbar icon

I've just re-installed Git on my Win10 PC and tried to pin Git Bash to my taskbar.
For some reason now, when I open Bash from my taskbar shortcut, it displays duplicate icon on the taskbar. I tried to pin that icon but once I end the terminal session, that shortcut is deleted. I've tried multiple Win10 sites but most just say to repin the new icon.
Prior to updating I could pin it fine with no issues.
I did this for Windows 7:
Make sure there was no other (older) Git Bash appearing in Start Menu
Remove any existing pinned Git Bash from Taskbar
Launch Git Bash
Pin this launched window to Taskbar (instead of the one appearing in Start Menu)
In my case, launching git-bash.exe and pinning the result produced a shortcut to cmd.exe with no arguments, which just opened a regular command window. Creating a shortcut to git-bash.exe directly (either manually, or by pinning the existing Start Menu shortcut) caused the opened window to be separate from the pinned item.
What worked in my case (more manual):
Create a shortcut to this command: %windir%\system32\cmd.exe /c "C:\Program Files\Git\bin\bash.exe" --login
(Optional) "Change Icon...", then select the git-bash.exe location (one directory up from bash.exe), and click the icon selection area for the icon to show up and to select it.
Update the "Start in" value to %HOMEDRIVE%%HOMEPATH%
Pinning the git-bash.exe fixed the problem for me. This also fixed the problem with broken icon graphic.
NOTE! This was on Windows 7 - haven't tested on Win10!
Open Windows Explorer.
Navigate to C:\Program Files\Git.
Right click git-bash.exe, select Pin to Taskbar.
Shift-right click the newly pinned icon, select Properties.
Add to the end of the field Target: --cd-to-home
Set the value of the field Start in: %HOMEDRIVE%%HOMEPATH%
Press OK.
NOTE! This was on Windows 10
I don't know how it works but open the git-bash.exe file and pin the opened file on the taskbar
Do not pin the program which is not opened or else it wont work
None of the other solutions worked for me so here's what I did on Windows 10:
Open Windows Explorer
Navigate to C:\Program Files\Git
Right click on git-bash.exe
Right click on it and select Pin to Taskbar. This creates the first taskbar item.
Run git bash by clicking on the taskbar item. This creates the second taskbar item.
Pin the second taskbar item.
Open the properties (right click on the icon -> right click on the app name -> properties) of the second taskbar item and fix them:
Set Target to "C:\Program Files\Git\git-bash.exe" --cd-to-home
Set Start in to %HOMEDRIVE%%HOMEPATH%
Change the icon... Go to C:\Program Files\Git\ and select git-bash.exe and the icon.
Close the properties window and unpin the first taskbar item.
I have faced this problem. Here is a tried and tested solution. Very easy. Out of the 2 icons that you see, right-click on the inactive icon and do Unpin from taskbar. Then click on the active icon and do Pin to taskbar.
It's easy for Windows 10.
Open Windows Explorer
Navigate to C:\Program Files\Git
Select git bash
Select the 'Manage' option which appears under the field in purple 'Application Tools'
Select the 'Pin to Taskbar' option which shows on the far left

Releasing the find and replace pane in visual studio 2012

In Visual Studio 2012 the find and replace window has Docking alignment to the top right side, how to release it?
The "quick find" window isn't docked in the usual sense. Press Esc to dismiss it and also make the yellow-orange search result highlighting go away.
Alternatively, click the X in the top right of the mini window.
Edit.Find = docked Find window
Edit.Replace = docked Replace window
Edit.FindinFiles = undocked Find window
Edit.ReplaceinFiles = undocked Replace window
so for undocked windows you can press Ctrl + Shift + F or Ctrl + Shift + H
or alternatively change shortcuts in Options > Environment > Keyboard to reach desired windows easier.
This is not possible unfortunately, which really drives me nuts when trying to find something in a minified file (single line) since the find window commonly blocks the found result.
Last post I could find about it:
https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/3636907-let-me-undock-the-find-and-replace
The best solution I can find is copy and past file into notepad and find there (for my needs).
In Visual Studio 2012 all docked windows can be released as follows;
Docked Window's Header right click menu (or click Window Position Icon what located the far right of the header)> Float menu
If the usual things, as already suggested, won't work, here are two other ideas I have found to work with oddities in Visual Studio.
Disable all plugins and try again (had a weird case of VS crashing on Ctrl+S and it was a faulty plugin)
Try a repair on the install, could have some faulty files.

Where is my "Recent Projects and Solutions" option?

I recently installed Visual Studio 2012, and I've been banging my head against my desk looking for missing options.
I use the Recent Projects and Solutions menu option (under the File menu) a lot in Visual Studio 2010, but don't have anything like that in Visual Studio 2012. However, my boss does, so I know there's something wrong with my install or an option I've missed.
I've casually looked through registry settings for anything like "Project" that exists in my 2010 settings but does not exist in my 2012 settings, and came up empty handed. Does anyone know how to fix this?
It looks like some part of the upgrade process just removed this menu option for me. Following nithins link to this question, I followed the instructions the author created to re-create the Recent Projects and Solutions menu item.
For posterity, those steps were (performed in Visual Studio 2012):
Under the Tools menu, click Customize...
Click the Commands tab.
Change the Menu bar selected option in the drop-down list to File.
Click Add New Menu.
Click Modify Selection, rename to Recent Projects and Solutions.
Under the Menu bar drop-down list, select File | Recent Projects and Solutions.
Click Add Command...
(The Add Command menu should appear here.)
Under Categories on the left-hand side, click File.
When the Commands list (on the right-hand side) refreshes, click Recent Project list, and click OK.
Click Close.
Happy project switching!
I had the exact same problem, but I had the sense that other menu items were missing as well.
What I did was go into Tools => Import & Export Settings, choose Reset all settings, and then select the same profile as when I installed Visual Studio. (General Development Settings.) That fixed the issue.

Resources