How to open a new window in latest Xcode 12 beta? - xcode12

How can I open a new window editor in latest Xcode 12 beta?
Edit: Dragging from the top navigation bar doesn't work, too.
Edit: This has beened fixed in Version 12.0 beta 4 (12A8179i)

Using Shift + ⌘ + T (or using File > New > Window) will open the current file in a new window. This is the best solution I have found.

You can enable 'open in New Window' by setting navigation in Xcode - Preferences.
By setting Navigation style and optional navigation, you can see 'Open in New Window' when right-click.

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)

PyCharm: Can't open two projects in the same window

I am trying to open a second project in my current PyCharm window, and I got the following pop up window:
However, the choice of "Add to currently opened project" check box doesn't show.
The tutorial at https://www.jetbrains.com/help/pycharm/2018.1/opening-multiple-projects.html?utm_medium=link&utm_source=product&utm_campaign=PC&utm_content=2018.1
has the check box. Why doesn't my pop-out window have the check box? Thanks!
According to this,
the option is only available for opening a new project. Also, see the bug tracker. In order to get the "add to currently opened projects" you have to go through "File" -> "Open" not "File" -> "Open Recent". Tested with PyCharm 2018.1 (Community Edition) on Windows 10.

Insert comments after closing bracket using Android Studio automatically

Is it possible to get comments to be placed automatically at the end of a method with Android Studio?
return new MaterialApp(
); // MaterialApp
Closing labels are now supported in Android Studio 3.1 with the latest Dart and Flutter plugin
(last checkbox at the bottom)
Disable checkbox and restart IDE
As in Android Studio 3.4 the location name changes to:
File > Settings... > Editor > General > Appearance
Tick the last checkbox - "Show closing labels in Dart source code".
Just ctrl + f in settings and paste:
Show closing labels in Dart source code
Disable checkbox and restart the IDE
Now your code is readable!

Shortcut to close a opened tab in android studio

What is the shortcut to close the opened tab in android studio?
I'm new to the android studio. I tried with CTRL+W. It's not working. I searched for a while. But I haven't get it. Any one please provide me the shortcut to close the opened tab.
You can try pressing CTRL+F4 in order to close opened tabs in Android Studio
As mentioned above, type CTRL + ALT + S to get into settings and in the keymap dialog search for Close, but the thing you want to reassign is
Close Active Editor
For Mac it is not set by default. Here is how I did it.
Android Studio 4.1 > Preferences > Keymap search for Close Active Editor right click > Add Keyboard Shortcut. Then assign anything you want. Alt+W is a good one.
If you right click on a tab header, the context menu shows you the current key binding next to the word Close (by default Ctrl+F4).
Follow the steps mentioned in other comments (type CTRL + ALT + S to get into settings and in the keymap dialog search for Close) and what you actually need to change is [editor tabs] / [close]
(android studio 3.6.1)
On a Mac, it's command + F4.
If you're like me, you may have to do command + fn + F4

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