My OS is Mac.
I have opened several projects in AndroidStudio, sometimes I wanted to switch between the projects to choose a project. Is there any keyboard shortcuts to do it just like "command/ctrl + tab" ?
Use Cmd + ` (Cmd + Backtick). It switches between all the projects that are open on Android Studio.
In Android studio command to switch between diffrent project windows (i.e. windows those are not minimised) is as following :
⌘` -> (i.e command + backtick) -> for next project window
⇧⌘`-> (i.e shift + command + backtick) for previous project window
You can add your preferable shortcuts in Android studio -> Preference -> Keymap
Sometimes it doesn't work because of conflicts with other shortcuts.
Go to the menu "Android Studio" -> "Preferences", choose "Keymap".
And, use the search field for quick access.
For example, I made Ctrl+Shift+` shortcut, which is easy to use with one hand.
I'm not familiar with the Mac version of Android Studio, but the standard key combo for switching between windows within an app on the Mac is cmd-` (cmd-backtick) unless the app maps that to something else.
For AS 3.5.3 and after, open Window menu and look for Next Project Window or Previous Project Window options. They have the shortcut combinations next to them.
Precisely:
Next Project ⌥ ⌘ `
Previous Project ⌥⇧ ⌘ `
On a MacBook Pro keyboard getting the backtick requires pressing Shift so stock shortcut doesn't work (Studio 3).
But you can remap it to use the 'tick' instead : ´
So it becomes ⌘ + ´ for next project
and ⌘ + shift + ´ for previous project (equivalent of ⌘ + `)
That is probably what the designer had in mind.
A forward tilted tick to indicate a forward navigation and the
backtick symbolizing "backwards".
See Android Studio -> Preferences -> Keymap -> Main Menu -> Window
⌘` is the default shortcut. But since I have Android Studio 3 installed it doesn't work anymore. I solved this by replacing it through ⌘^ which is the same key combination.
When I update android studio to version 4.2.1, I also can't switch project. When I swith to official keymap like "Eclipse (macOS)", I search "cmd+ Backtick". I find the name is "Active Next Window". So I switch to my keymap and search "Active Next Window" as the second screenshot. Then I set it to "cmd+ Backtick".
Backtick is the "'" key on keyboard.
Windows - Command + ` (Backtick)
Mac - Option + Command + ` (Backtick)
Command ⌘ + Backtick `
It's Worked for me.
To switch between projects:
command+option+`
Related
In most editors (including Visual Studio proper), I can use Shift+End to select all of the text from the cursor location to the end of the current line, and Shift+Home to select all text up to the beginning of the line.
These shortcuts don't seem to work out-of-the box (at least, on the Mac version). Is there some way to enable this, perhaps with a plugin or a setting I'm missing?
Strange it should work out of the box. If not, go to File > Preferences > Keyboard Shortcuts and look for cursorEndSelect.
{"key": "shift+end", "command": "cursorEndSelect", "when": "editorTextFocus"}
I use following inbuilt shortcut (VSCode 1.39.2, MacOS 10.15)
⌘ Command + ⇧ Shift + → Right Arrow key combination
You can access keyboard shortcut reference here: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
You can visit this link anytime from VS Code by navigating to
Help > Keyboard Shortcuts Reference
It now appears to be ⌘ Command + ⇧ Shift + ↓ Down Arrow
(MacOS Big Sur 11.6)
The way that I set up mine is to go to File > Preferences > Keyboard Shortcuts and look for cursorLineEnd and cursorLineStart. Set these to with your own shortcuts for jumping to the end and beginning of a line.
'Dvorak - Qwerty ⌘' layout, which map my key back to qwerty if i press ⌘ simply works well in most app but not Android Studio with Keymap Mac OS X 10.5+. Anyone have a workaround? Or I should just change my layout on my Mac back to just 'Dvorak' ?.
In case anyone is looking for this - in my current version of Android Studio (v2.3.3), you can go into Android Studio > Preferences and select the Keymap option in the Preferences Pane.
From there, you can re-assign your shortcuts. I did the big ones: Find, Copy, Paste... When you reassign them, it will show Dvorak keys for the shortcuts - my shortcut for Find (Cmd + F) shows up as CMD + U.
Also, be sure to choose the Remove option, to remove any previously existing actions that might be paired with your new key combos.
And don't forget to hit Apply and not just OK !
I have checked Preferences->Editor->Code completion. Basic code completion is turned on. Shortcut is ^Space. When I click [control]+[space], it is opening spotlight search instead of code completion. How to solve this problem?
You need to change the Mac OS X keyboard shortcuts (Preferences | Keyboard | Shortcuts | Spotlight) and either disable the "Show Spotlight search" shortcut or reassign it to a different key.
As an alternative to yole's answer: Since I did not want to modify my system's shortcuts to have them the same across my Macs, I just edited the shortcut in Android Studio (Android Studio -> Preferences -> Keymap and change Basic Completion).
I've used Option+Space which is not assigned to any global shortcut.
P.S.: This is indeed a nuisance coming from years of Windows usage.
I'm running Android Studio on Windows 10.
File -> Settings -> Editor -> General -> Code Completion
The default hotkeys for Auto-Complete are:
1) Control + Space + Spacebar
2) Control+ Spacebar
Click on Alt+Enter to make Auto Complete
The shortcut is different now but is still working, you just need to click
ctrl + space
. The ^ you see listed in your preferences is the symbol for ctrl on a mac.
On MacOS Ventura (13.0), Ctrl-Space is assigned to switching input sources.
This needs to be disabled or changed to some other keys in System Settings... Keyboard > Keyboard Shortcuts > Input Sources if you want to keep using the same short cut in Visual Studio.
I'm finally starting to get over my initial frustrations with Xcode 4.0 (why on earth did they think changing all of the keyboard shortcuts was a good idea).
However, one simple task is beyond me right now... how do I switch between multiple open projects via the keyboard?
For example, I have two different Xcode projects open, and the mac will put them both into the same Xcode application (unlike Windows where you can easily see multiple instances of the same application open). I want to quickly toggle back and forth between these projects without going to Window -> (choose the other project). Is there an easy keyboard shortcut for this? It seems that there used to be.
To switch use following Keyboard shortcut
Cmd + `
Command + tilde("~") keys. Can be very useful when you have limited screen space.
Furthermore, XCode windows must not be "maximized" (the icon with two arrows up on the right), otherwise the key shortcut has no effect.
Xcode 8.3.3 - German Keyboard
Cmd + Shift + <
Update:
In fact there is a keybinding in Xcode that overides the system wide shortcut to switch between windows on german keyboards. The keybinding is Cmd + < for Scheme > Edit Scheme.
When this shortcut is changed or removed, then the usual shortcuts to cycle through the open windows of an application will work as expected (i.e. Cmd + < cycle forward, Cmd + Shift + < cycle backward).
Xcode 4.6 Italian Keyboard
Cmd + Shift + `
This works for me:
Cmd + Shift + ´
I know that Ctrl + Shift + B launches a solution build, but I would like a shortcut that just builds the current project. Is a custom shortcut my only option?
Edit: Looks like a custom shortcut is my only option as Shift + F6 does not work for me.
Assigning the shortcut to "Build.BuildOnlyProject" command doesn't seem to work in VS2008.
Assign the shortcut to "Build.BuildSelection". If you have a solution with several projects and files open from the various projects, whatever file you are currently editing will define the project that will be built when you use the assigned shortcut for "Build.BuildSelection".
You'll know the keyboard shortcut is working when you click the Build menu option and you see the keyboard shortcut on the menu itself.
btw - a restart/reboot is not required when assigning keyboard shortcuts.
custom shortcut depending on what keybindings you are using.....if you look in your menu it will tell you if you have a keybinding.
The other thing I have got used to, because I make use of ViEmu, is use the menu shortcuts. Which are actually quite quick to do, and are independent of bindings.
So to build your project you go Alt + B, U
You can use the shortcuts already established in the main menu that are navigated with the Alt key:
At least for VS2013:
Alt + B, B -> Build Solution
Alt + B, R -> Rebuild Solution
Alt + B, U -> Build current project
Alt + B, E -> Rebuild current project
For some reason after installing Resharper I couldn't get a global shortcut to work (tried several times!!!), but as long as what you want to do is on the main menu, there is always an Alt + "Letter1", "Letter2" combination to trigger whatever action you'd like :-)
For C# development:
F6 or Shift+Ctrl+B - Builds all the projects in the solution.
Shift+F6 - Builds the selected project and its dependencies.
Visual Studio 2015/17
ALT + B + E
ALT + B = Open Build Menu
E = Rebuild Current Project
for C# development. Tools -> Options. Select Keyboard, select additional keyboard mapping scheme to "Visual C# 2005". This mapping has F6 as standard shortcut.
VS 2012 has Shift + F6 already mapped for this. I was surprised to learn this.
For Visual Studio 2017 community, you can use Alt+b then press u to build your current project.
Details: ALT Switch to the main menu -> choose b for build -> u choose the option of build your_project_name from the drop list.
In Visual Studio 2019 this has been set to Ctrl+b
In Visual Studio 2017 and 2019, Shift + F6 works for me.
As Happy Mittal said (Alt + B + J) open a drop window that select the project build, but then i had to press enter instead the last "B" (VS 2017).
In Visual Studio 2015, Alt + B, H will build your solution and publish it.
Sometimes I have to use Visual Studio in a language different than English and the navigation using Alt and a combination of keys is different. If there is someone in the same situation, I found out that is more convenient to create a keyboard shortcut to have consistency among languages. I followed the instructions from https://evanjpalmer.wordpress.com/2013/08/20/build-selection-short-cut-for-visual-studio/ to create the keyboard shortcut:
To set this up:
Tools -> Options -> Environment -> Keyboard (Spanish: Herramientas -> Opciones -> Entorno -> Teclado)
Put the cursor in “Press Keyboard Shortcut Keys” and shift CTRL+SHIFT+B
In Show Commands Containing, type: Build.BuildSelection (Spanish: Compilar.Compilarselección)
Select Build.BuildSelection from the drop down list and hit apply
Put the cursor in “Press Keyboard Shortcut Keys” and shift CTRL+ALT+SHIFT+B
In Show Commands Containing, type: Build.BuildSolution
Select Build.BuildSolutionfrom the drop down list and hit apply
???
PROFIT!
In the Visual Studio options window, under "Keyboard", look for the "Build.BuildOnlyProject" command and you can set whatever you want.
press (Alt + B + J + B) these key combinations to build only current selected project of the solution (VS 2010).
It selects "Build" option from toolbar (Alt + B key ) , then goto "project only" (J key ) and then "Build Only XXX" project (B key).