GitBash duplicate taskbar icon - windows-10

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

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)

Android Studio icon not showing in taskbar - Windows 11

Recently I upgraded from Windows 10 to Windows 11. But now when I open Android Studio only a blank file icon appears on the taskbar.
Is there any way to retrieve the original Android Studio icon?
I have also checked that the .ico file exists in C:\Program Files\Android\Android Studio\bin\studio.ico
I did this and it showed for me:
From start menu: right-click its icon.
Click More -> Open file location.
Right-lick the shortcut and choose Open file location.
From the opened directory, open the file studio.ico with any app.
And suddenly the taskbar refreshed and it showed.
You can click on Start and search for Android Studio ,then on the right side you will get an option of pin to taskbar, click on it. Now Android Studio icon will appear in Taskbar.
But why this happened?
This usually happens when the location of file has changed or it has been deleted! But why this happens during updating to Windows 11 in some PCs, only Microsoft knows!
This is what's working for me:
From start menu: right-click the icon.
Click More -> Open file location.
Right-lick the shortcut and open Properties.
Change Icon -> OK -> Close.
Do step 3 & 4 again, because the first time didn't change the icon (in my case).

Visual Studio - Menu Options - Float Right or Left

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.

Terminal Missing in Android Studio

I opened Android Studio to find that the Terminal Tab is no longer present along the bottom left. Restoring to the default layout did not return it. I also can't seem to find any reference to it in the View or Window Tabs.
How do I get the to the Terminal tab in Android Studio?
Update:
Terminal is not present under View -> Tool Windows, but the Terminal Plugin is installed and enabled.
File > Settings > Plugins' - Search for "terminal"
Untick the check box -> Press Apply
Tick it again -> Press Apply -> Press OK
Restart Studio
Try the shortcut alt+F12. Or check the information under the heading
Running embedded local terminal
On the following link:jetbrains help
Toggling Tools-> Android-> Enable ADB Integration Off/On then restarting the IDE returned my Terminal Tab.

shortcut in Android Studio to locate the current editing src file

Do you know how to check the location of current editing file in the project tree panel (the very left panel of the Android Studio), except manually. (The worst case is that all the folders there are collapsed)
The Navigate->Class shortcut can show me the src file in edit panel (central panel) quickly. Then I want to know the src file's logic location in project tree (left panel), so that I can add some new files in the same package quickly. (e.g. right-click the package and add new Class).
Currently, I have to expand the project tree and find it folder by folder.
Actually, in Xcode there is such a shortcut named "Reveal in Project Navigate"
What a convenient way it is.
I wonder whether this is also supported in Android studio.
Thanks
You can use the Scroll from Source button in the Project Toolbar in the left of Android Studio.
Another solution is Alt+F1+1. You can also read Locate current file in IntelliJ for more answers.
Just enable the following option!
In Android Studio 4 it is now Always Select Opened File under the Settings menu in the project view.
For automatic scrolling, you can do following:
You need to ensure Autoscroll to Source and Autoscroll from source is enabled.
Whenever you change the file the Project tree will be highlighted according.
I have observed some slowness and lag if project size is big(several modules or huge code base) and you use short cut Ctrl + N to navigate to a class.
So the alternative would be to either to click following icon:
OR
Use keyboard shortcut:
Alt + F1 + 1 or Alt + F1 + Enter
You can add shortcut (keymap) to "reveal current editing file in project explorer" command.
Press Ctrl + Alt + S, for Windows user, to open Settings
Select Keymap on the sidebar
Find the command using search box, type this into it: select in project view
Right click the result then select Add Keyboard Shortcut
Type any keyboard combination you want, for example, me prefer shortcut Ctrl + K to reveal current editing file on project explorer
Click OK button. It will prompt you to remove keyboard shortcut you typed from existing command, so just click Remove button.
I'm new to android development. I used to code in Sublime Text 3. One of first thing I do to make android development feels more enjoyable is binding all shortcut I used in Sublime Text 3 to Android Studio. Now, it feels like home :)
For Mac users: Option+fn+F1, then Enter.
Android Studio 3.6.3 (April 2020)
Go to Preferences > Keymap & search for "Select in Project View" and assign your keyboard shortcut.
Under options menu, select Auto scroll from Source
Navigate -> Select In.. -> Project View -> Project
open pref -> Keymap, then search 'select file in project view', not 'select opened file'.

Resources