Apatana 3.0.7 Code Assist - Auto Complete - autocomplete

Hey I'm a Cisco guy,
Just started with apatana to design a web page for my small business. My question is about the code assist and the auto complete feature. Apatana is very good at picking up what i'm typing be it an element, selector or even value sometimes. The issue im having is when i begin entering text. The code assist window will pop up, and present a list of possible choices based on what i have entered so far. then i have to either stop what i'm doing and press the down arrow, or grab my mouse and select my choice for assist. Or, i can continue typing out the element (or whatever) to narrow down the list. What I'm hoping is that, there exists a feature like in cisco terminal. where you can press the "tab" key to goto the next branch point of ambigious choices.
Let's say I was looking for the background-color selector. In my ideal world with code assist it would go something like this.
"b" ->[tab]
"back" ->"g"
"backg" ->[tab]
"background" ->"-co"
"background-co" ->[enter]
"background-color:"
I hope this makes sense. Thank you for reading.
Moved to http://jira.appcelerator.org/browse/APSTUD-4251

That feature is not currently available, but it's an interesting idea. I'd suggest filing a feature request at http://jira.appcelerator.org

Related

How to hide the VSCode update dialog

I get the VSCode update dialog a bit too often and do not want to click it away anymore. Is there a way to make sure that it is never displayed anymore?
Press ESC.
VS Code is all about high-speed workflow and not having to interact with anything except your code via keyboard. Everything has key chords, e.g. CTRL-P and CTRL-SHIFT-P. So having to stop what I'm doing, go to the mouse, and dismiss this popup, whenever a background task feels like completing (and not even really then, because the popup actually appears some short time later) just so I can get visual confirmation of which file I'm currently coding in, to refocus my work after being distracted by the same popup, is really awkward. They are in a stupid location and don't even fade away after time like well-behaved toasts.
That said, I think that's really two parts; the distraction, and relatively high workflow cost to dismiss.
It helped me a lot to learn that it can be dismissed quickly and easily with the ESC key. The other half the problem I still haven't solved, but hope that helps you.

How can I "accept" the autocomplete in Netbeans?

Sorry if this is a stupid question, for the last ten years I've worked solely in a text editor.
In Netbeans, I'd like to be able to quickly accept the autocomplete and move on. For example:
$foo["bar
Netbeans will have automatically completed this to:
$foo["bar"]
My caret/cursor is after the 'r' of bar. At this stage I would love to be able to hit one key and move to after the ] or even the " and then the ]. I can use the right keyboard arrow but that is impractical/painful. They must have thought of this by version 8? It really interrupts my flow and right now I'm just retyping the characters myself as it's quicker than moving my hand to the arrow keys.
I've scoured Netbean's menus, help, StackOverflow, Google. I think the answer will be very simple but I'm not sure what I should be searching for. I may just be very dim.
I use the end key to jump past the autocompleted characters.

is there any eclipse plugin available for writing a memo on any line of code?

Doe anybody know of an eclipse plugin, which can be used to insert short text (in the form of memo) to remember what that line of code does or a block of code does to help me understand the existing code better and i can also refer it back later on.
Just like "Task" can be added on a line of code, although i can use "tasks" for this purpose, but that is not very convenient and intuitive.
If you want to add a short text to "remember what that line of code does or a block of code does to help me understand the existing code better", use comments. That's what they're for, and practically every formal language in the world has them.
If you want the ability to quickly jump to an arbitrary point in the code, using bookmarks is a convenient option - right click the bar immediately left of the text and choose to add a bookmark. You can then easily jump between bookmarks with the "bookmark view", which you can enable from the Window -> Show View menu.
The closest thing I can think of is bookmark support. There is native bookmark support in Eclipse and also several other vendors supply more function.
I'm assuming that there's a very good reason that you don't want to or can't modify the code.

Eclipse (ctrl+space) content assist hook

I wrote a plugin that gets user input from Java editor, makes some computation, and writes the results to my view. The way I start the process of aforementioned computation is via context menu and I hate it. I would like it to start on ctrl+space, i.e. content assist. It is faster, more intuitive w.r.t. what the plugin does. Is there a way to do so?
Update:
For example, what should I do to get the current cursor position when user presses ctrl+space? I would use that position info and print it to my view. This is the most simplistic plugin that I basically need.
You could take part in the content assistent calculation of Ctrl-Space by extending javaCompletionProposalComputer. However, if you want to trigger some arbitrary modification operation on the Java file, you are better suited by providing a quick assist instead.
If you are confused by the terms: An example for quick assist is the suggestion "Invert if statement", which you can see when pressing Ctrl-1 with the cursor placed on an "if".

Is it possible to work in Eclipse with keyboard only?

as most of us surely do every now and then, I try to improve my workflow. As Eclipse is my main IDE, I wondered if it may be possible to use it without mouse. I browsed the available shortcuts and tried to use them instead of my mouse. I found interesting features like Ctrl+3 which opens something like the Apple spotlight.
I know there are a lot of questions concerning favorite shortcuts etc. but I'd like to know if it works because at the moment it feels a bit squishy 100% without mouse.
So is anyone out there using Eclipse like that? And are there some hints to ease the change?
Yes, it is possible. For a start, check out 10 Eclipse navigation shortcuts every java programmer should know. When you use these 10 shortcuts and some of the shortcuts of the comments, you will already see a big performance boost.
The "open type" and "open resource" dialogs are CamelCase-sensitive, so when typing "NPE" in the open type dialog, I get two matching items NoPermissionException and NullPointerException. So using good names with consistent spelling is a must.
Ctrl+F11 starts a program, F11 debugs it. Note howewer to check if in Window-Preferences-Run/Debug-Launching the value of "Launch Operation" is set to your needs.
You may want to customize the search dialog (Ctrl+h) to only show the file search (default is to context sensitively present you with different search tabs).
Ctrl+n allows you to create something new (opens a wizard with an initial filter text to filter the possible next pages).
I'm a blind programmer who uses eclipse. While there are plenty of shortcuts I find people often overlook using menus from the keyboard. If there's a function you use a lot that doesn't appear to be supported with keyboard shortcuts you can either create a shortcut to it in prefferences or use keyboard shortcuts such as alt+f to access the file menu and a one letter combination that allows you to access the item. For example hit alt+f then a to access the save as dialog. The underlined letter is the one you want to hit once in the menu.
There are a couple of things you can do to improve your keyboard:mouse usage ratio with Eclipse.
First off, if you push Ctrl-Shift-L, it shows you a master list of all the shortcuts you can use. If you know what you want to do, this is usually a quicker way of doing it without having to dig through menus, and as a bonus, you will learn some shortcuts you didn't know before.
The other thing you can try is a plugin called MouseFeed which looks promising. It tells you the shortcut for any menu item you use and if there isn't one, reminds you to create one. It essentially acts as training wheels until you become as close to 100% keyboard use as possible. I'm not sure how well it works in 3.4, but you can give it a shot.
Hope that helps.
Here you get an Eclipse Shortcut Overview PDF file of all key bindings. This file you can print and put beside your keyboard if you wish.