Title more or less says it all. Specifically, I've become increasingly annoyed that in order to run an ant script I have to use Alt+Shift+x, q. But I think If I had this power I would many things I would change the shortcuts for/add shortcuts for things that don't currently have them.
Window > Preferences > General > Keys
In particular, edit the "Run Ant Build" command.
For Windows:
Window > Preferences > General > Keys
For mac that would be
Eclipse > Preferences > General > Keys
Pressing Ctrl + Shift + L will open the current list of defined shortcuts, again pressing Ctrl + Shift + L will open preference page from where the shortcuts can be modified.
As a side note make sure your newly mapped Shortcut won't have any conflicts on the right of the Keys window/menu.
If so choose a combination that will work; doesn't have any conflicts with existing ( default ) settings.
Hope this helps.
Related
Is there an equivalent of Ctrl + Shift + L (show shortcut references) from Eclipse in IntelliJ IDEA?
I am switching to it from Eclipse but I have to check the keymaps frequently and I would like to have access to the quick reference of shortcuts instead of opening the settings to do it.
Learning shortcuts: I switched from Eclipse, too. Initially I started with the Eclipse key bindings, but then decided to switch completely. I used KeyPromoter for about 2 days, it is annoying but increases the learning curve heavily. Help->Find Action... (Ctrl+Shift+A) helps, too.
Reference card: After that I printed my own shortcut reference. Took one hour, but it was worth the time, because I have adapted some shortcuts and some shortcuts are displayed incorrectly in IntelliJ Idea. Here's a Word template.
Command + Shift + A displays a field that performs a search on an action or option name. Shortcuts along with their corresponding keymap are displayed during the search.
I think Ctrl + Shift + L (show shortcut references) from Eclipse must do "Introduce variable..." In Idea it is Alt + Shift + V or with menu Refactor/Introduce variable...
May be useful to somebody(begginers like me :) ).
The correct answer is Ctrl+Shift+F to search text everywhere in the project.
I usually use "Shift Shift" that it searc everywhere shorcuts included.
So for example if I need to search "Optimize import" I do
Shift Shift and write "import" or "optimize" and it appear.
In my IDE, I have to first navigate to the option using mouse. Once I minimize or maximize the editor window once, Shift + Cmd + M starts working but not before that. Is there something I can do about it?
It seems strange. Would you check which command is binded to Shift+Cmd+M? Default shortcut for toggling maximize active view/editor is Ctrl+M. You can check this in Preferences > General > Keys or hit Cmd+Shift+L twice.
Is there any shortcut for cleaning a project? Or can we create a shortcut for cleaning the project using:
Window--> Preferences--> Java --> Editor --> Templates?
If yes ,how?
To clean android project:
Window -> Preferences -> General -> Keys (Ctrl+Shift+L)
in type filter text write build clean. There you can bind the key, for ex. Ctrl+Shift+L.
It's quite easy:
Press ALT + P + N.
Release ALT
Enter.
Window -> Preferences -> General -> Keys (Ctrl+Shift+L+L)
In type filter text, type clean. The you will have the possible command and you can assign any short cut you want.
As George said, it is really easy.
Just keep an eye on underlines coming out when you hit ALT .
Then if you follow these underlines, hit P and then N.
Note:
No need have to have ALT pressed down or hit Enter at the end.
In Preferences/General/Keys look for "Build Clean".
You can assign a binding for that command.
Works for me on Mac OS X Kepler.
Is it possible in Eclipse to assign Control-M key to newline?
Windows XP + Helios.
I don't know for sure, not having done it myself, but investigate the key binding dialog Window > Preferences > General > Keys. See page 362 of the 3.1 documentation for more.
In Window > Preferences > General > Keys,
redefine Insert new line Below current line, and Bind Ctrl+M.
Be careful, by default, Control-M already toggles maximize/restore state of active view or editor. this will override the shortcut.
What is the auto-alignment shortcut key in Eclipse?
Ctrl+Shift+F to invoke the Auto Formatter
Ctrl+I to indent the selected part (or all) of you code.
Auto-alignment? Lawful good?
If you mean formatting, then Ctrl+Shift+F.
The answer that the OP accepted is wildly different from the question I thought was asked. I thought the OP wanted a way to auto-align = signs or + signs, similar to the tabularize plugin for vim.
For this task, I found the Columns4Eclipse plugin to be just what I needed.
Want to format it automatically when you save the file???
then Goto
Window > Preferences > Java > Editor > Save Actions
and configure your save actions.
Along with saving,
you can format, Organize imports,add modifier ‘final’ where possible etc
auto-alignment shortcut key Ctrl+Shift+F
to change the shortcut keys Goto Window > Preferences > Java > Editor > Save Actions