Android Studio: Make Tab jump to the maximum indent - tabs

I realize this is not a programming question, but it's driving me nuts and there is no other place to ask this kind of question.
In Android Studio (1.0.2) if I press the Tab key, it jumps exactly 1 indentation level. Even if I am in the middle of some heavily nested code, and I have to press Tab a bazilion times to arrive at the maximum indentation level, where it should have put the cursor in the first place.
Both Eclipse and Xcode jump to the max indent level if I press Tab, and that works way better for me.
How can we set the Tab key to jump to the maximum indent every time?

I'm running the same version (Mac), and was looking for the same thing.
Go to Android Studio Settings ---> Keymap
Find the entry for "Emacs tab" and assign a key.
This option does not have a key assigned by default, so you need to create one yourself.
If you really like the way Emacs works for tabs (I do), you can assign the tab key to this, and will be the default.
Working fine here now.

Related

How to jump between bookmarks in PL/SQL Developer

I'm analysing a package that's quite big and as I'm going down, I've selected a few lines that I deem important, every time I click on the line number, PL/SQL Developer marks the line with a blue number starting from zero as the image show. I know there's a hotkey to jump between them so that I don't have to drag the wheelbar and find them on my own. Does anyone know how to do that?
Example
You can quickly move between PL/SQL Developer bookmarks by pressing CTRL+Q and then the number of the bookmark.
If you want to change that keyboard mapping, go to Configure-->Preferences and modify the "Editor: Goto Bookmark" value.

Why is Sublime Text context menu disabled (image below)

I have installed HTML-CSS-JS Prettify package in Sublime Text 3 (on Ubuntu 18.4).
The image below shows that it appears on the context menu. However, when I select its context menu (the second context menu) has all options greyed out. I can't find a explanation anywhere and would appreciate knowing how to enable it.
If it is any use the "Anaconda" selection is also all greyed out when I select it. Nodejs is not.
Many thanks.
Menu items appear disabled for a couple of different reasons.
The first (and most common) is that when a menu is about to be displayed, Sublime asks every command bound to an item available in the menu if it should be enabled right now or not, and the command can decide to disable itself if it currently doesn't apply.
The second reason is that the command bound to the menu item is currently missing. For people using packages and not creating them themselves, that generally means that there's something wrong with the plugin that provides the command, such as it not loading for some reason.
In this case, based on the items in there it seems more likely that the second case is what's getting you here.
In order to check that, use View > Show Console or the associated key binding and see if there are any messages that look like a package didn't load for some reason. If so, resolving whatever issue that is should get things working.

cshtml Razor IntelliSense suggestions dissapear instantly

I have read and seen many IntelliSense problems related to Razor in cshtml files. Mostly that 'it is not working'. For me this is only the first 5 seconds, then everything is correct. But what bugs me is something very weird. I had it on one pc first, thought it was computer related, yet this is the second time it happens:
When I start typing, lets say #Model, as soon as I press the period button . I get the usual list of possible properties to select, but this list disappears instantly. It is a little flash of the list. Of course I want this to stay while I continue typing and choose the correct one when desired.
In a normal .cs file it is working fine, also in an .js file (AngularJS).
When I hit CTRL + Space it correctly shows the same list and it stays there, even when continue typing.
Very tiny but yet so annoying.
I have a fresh install of Visual Studio 2015 Enterprise.
Had the issue on Windows 10 and Windows 7 (fresh install on here, with version 2 update).
This question sums up everything I have tried (everything with at least +1) Visual Studio 2015 Broken Razor Intellisense
There are many suggested solutions here.
But what worked for me, is to make sure the close parenthesis have space between the text I am typing.
Instead of...
#Html.LabelFor(m => m.)
Use...
#Html.LabelFor(m => m. )
The intellisense seems to get confused by touching close parenthesis. Not ideal, but this was the only way I could get it to work for me consistently.

Wrong action with switch tab shortcut using right ctrl button

I want to switch tabs with the Ctrl+Page Up/Down shortcuts on Chrome (using the latest version). It always works correctly when I use the left Ctrl button, but with the right Ctrl button, it only works properly on some days. When it doesn't, it becomes page up/down instead of correctly being next/previous tab. I usually browse tabs for the same few sites, so I don't think it's due to the websites. I'm not sure what causes this. Is this supposed to be happening? How can I make the shortcut always work when using right Ctrl?
Edit: Found that it's basically any "ctrl+" shortcuts and not just next/previous tab. Also, I changed my keyboard recently, but this problem has existed since my old keyboard which I've used for 4 or more years, over at least two different computers, and Chrome is the only browser I use so I don't know if this problem will still exist if I switch browsers.
Your right ctrl button is not working properly (hardware problem). Maybe it's damaged or somewhat.
Some pages maybe does not alove that shortcut's. I'm saying this because i found that on some pages, and my shortcut's doesn't work on them.
I don't see other posible solutions for that.

Is there a Surround With for aptana studio plugin?

Is there some way to get "surround with" in the Aptana perspective in Eclipse like you have in the Java perspective. I would love to be able to surround text with html tags like eg: <div></div> with a keyboard shortcut. Is there some way of doing that with the snippets rubles?
Thanks,
You can do this with AutoHotKey, which has the added benefit of being available across all apps. I have a script which launches a 'surround' menu when I select some text and press CTRL+SHIFT+C
To use it, install AutoHotKey, and create a new .txt file with the following code, and replace the extension with .ahk
http://pastebin.com/48ipiXsG
At the top of the file you'll find a number of groups of items, in the following format
<h1>~<h1>##</h1>
the ~ character divides the name of the function and the function content. The bit before ~ is what appears on your menu, and after the ~ is the code. ## represents where your selected text will go. So if you select the text 'AutoHotKey' and press CTRL+SHIFT+C, and then select <h1> from the menu, it'll replace the with <h1>AutoHotKey</h1>
There are several menus in the script, set up to launch based on what app you press CTRL+SHIFT+C in. For example, I get different shortcuts if I'm in Visual Studio than if I'm in SQL Server. You can modify these easily enough, but the generic menu should work fine for you. Feel free to chop and change but you have to leave GENERIC at the top of the script.
PS: I use this script everyday, and there is one small bug. The script saves whatever you have in the clipboard in a variable, and then writes it back to the clipboard when it's done. Sometimes, instead of surrounding text it replaces it with whatever you had in the clipboard. This is easily undone with CTRL-Z and usually works the second time you try it. I've never been able to figure out what causes this, maybe some autohotkey heads can help out?
PPS : This script is based on some other scripts from the AHK forums, including this one
http://www.autohotkey.com/docs/scripts/FavoriteFolders.htm
So you may find comments that don't make sense. I've seen a few references to the middle click, as the script above uses the middle mouse button instead of CTRL+SHIFT+C.