Android Studio: disabled Active Editor settings keep resetting (using ideavim also) - android

So in Android Studio, I want to have as much space as possible available for editing code. I don't need breadcrumbs, don't need line numbers, don't need gutter icons. It's all so much fluff to me and I want the pixels back.
I disable the options in Active Editor, but they keep reappearing.
One wrinkle, I am using ideavim . I have 'set noshowmode' in my ideavimrc for those who know what that means.
I am able to uncheck the boxes in 'Active Editor' and get the sidebars to go away:
However as I open and close tabs they reappear:
And I have to uncheck all the stuffs again.
Any suggestions welcome -- thanks !

Related

I Have a problem typing in Android Studio

Good morning
I have a problem with Android Studio that drives me crazy, when I select any text in the code the selection turns blue and the cursor stops being a vertical line and becomes a white square, that's when I can no longer write anything, when pressing a couple of keys removes it and returns the cursor to normal but it removes the entire line I have written and it always does. I guess it's some editor option because I've reinstalled it and it still does the same thing, but I can't find a way to remove it and make it behave normally.
Does anyone know what is happening?
Greetings and thank you
i have found the solution, this is:
You should have seen this when there is a Vim option enabled in your Android studio IDE. To resolve this , double press shift which allows to search files and then search for Vim actions. Here, you should see Vim enabled is ticked. Uncheck that option to disable and your cursor becomes normal.
Thanks to Rushi Ayyappa

How can you permanently disable palette and component tree in android studio

I have a problem because I am using a tiling window manager, everytime I open an XML file, in Android studio, then these two small windows open op and block my view of the code. I don't know how I can permanently disable the windows/toolbars/view, (or what you call them)
I use Mod+Q to exit them every time I open the XML file, and it is quite tiring, so I am wondering if there is a way to get rid of these useless panels for goods :-)
I already searched alot in the settings of android studio, and I tried to click remove from sidebar and I even found out that you can click Shift+Escape to hide it, but my fingers gets tired from all this extra clicking everytime I enter XML split mode... :-)
Please Help Me - and thanks in advance! :-)
Thanks in advance.
right click on the title, and click on attached side
then left
then you can minimize it

redo button has never worked in android studios?

i have found that android studios has never contained any way of 'redoing' a text edit (the opposite of ctrl+z)?
the option exists in the menu/ toolbar but is greyed out. it always has been and it has never functioned.
to test, i have created a clean, empty project, typed in the java class, moved the cursor to elsewhere in the class (incase back to default for some reason prevents it working), typed again.
i then have tested both ctrl+z and manually clicking the undo button, but i am simply NOT ABLE to use the 'redo' option at all. not once since i have been using this IDE.
can ANYONE please explain this behavious and how to get this functionality back? as im finding i often undo one step too many and forget what ive just destroyed.
thanks
Go to File -> Settings -> Keymap
On the right side of the screen, search for "redo" and right-click on the Redo option.
Add a keyboard shortcut (I use ctrl+Y which is pretty standard across applications).

How to get to know about developer code blame in android studio

I am working on project which is shared by few developers, how to get to know about developer blame in android studio?? any shortcuts or any idea? which will help us to know about code blame.
Use Annotate feature of Android Studio
1.Right click in line number pane
:
2.Select Annotate
You can install GitToolBox plugin to view code blame on every cursor position.
OR
you can view by right clicking on left gutter in android studio, you will have a pop-up with option for Annotation or Annotate with Git Blame.
In addition to rcde0's answer, which I use all the time. You can also add a keyboard shortcut to toggle this view.
Preferences -> Keymap to bring up this screen:
Type "annotate" in the search area. This will find all commands that refer to the word in the search box.
Click on Git->Git->Annotate, this will bring up the first popup, asking how to proceed.
Select "Add Keyboard Shortcut" like I did here:
Another modal window will pop up, asking you to type in a keyboard shortcut. Select the area I'm pointing to and simply type your keyboard shortcut. You can see that I typed ctrlA. I never use it to jump to the beginning of the line, so this works well for me.
If the keystroke is already defined, it will warn you. Feel free to try other keystrokes until you find one that suits your style without eliminating something that you use for other things. Click OK to reassign the keystroke.
You'll now see your new keystroke mapped to the various "Annotate" functions. Hit 'OK' to exit preferences.
Try it out. Type your newly-defined keystroke and see the Annotations in the left gutter toggle on and off.

Refactoring/Renaming Variable in Android Studio Project

I'm writing a little Android App and things are working out nicely, actually. The only problem I'm facing is that Android Studio won't let me refactor all of the occurrences of the variable I inted to rename (see: attached link).
I'm simply using the Alt-Shift-R Shortcut, entering the wanted text and pressing enter. The field variable is changed - but its occurences (though highlighted before) aren't. Using the preview window doesn't change the outcome.
Am I missing anything? I feel like a moron. :')
Variable naming after hitting Enter-Button
valueAusgabe is the previous naming
If you're on Windows or Linux you should be able to rename all occurrences of your variable (variableAusgabe) by just using the Ctrl+Shift+R shortcut.
When you use this, a pop-up shows up and you have to enter the text you want to replace (variableAusgabe), and the text you want to replace it with. Select Refactor for each occurrence or Replace All.
In Android Studio (ver.3.1) shortcut for Refactor/Rename is: Shift+F6.
ctrl + R in windows,
it works for me
I also faced the same problem a few days back, just go ahead to refactor the variable and when the popup appears to confirm the refactoring the variable just uncheck the "Search in comments and strings", and it should work.
You might have some software running in the background that catches the event and isn't firing it back at the system for other software to process it.
One example, and a very popular one, is GeForce Experience In-Game Overlay (Shadowplay). Shift+F6 is used by it to switch post-processing filter slots.
If you happen to run a device with an nvidia chip, you probably have it running.
Steps to find and fix the issue:
Open its settings:
Alt+Z by default, or
RMB click its icon in the tray -> GF Experience -> Gear icon in the upper-right corner -> Scroll down to In-Game Overlay -> Press the Settings button.
Click the Gear icon on the right.
Keyboard shortcuts.
Find Shift+F6, click, press Delete on your keyboard.
If that software is not running in the background, it may be something else but equally as "greedy" is running then. Look for it in the tray. Good luck!

Categories

Resources