It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to understand how basic things are working in eclipse in the code.
For example if I do hover on annotation or any change in the editor ( draw words )
How I can know which code of Java was called ( class.. )?
maybe could be some spy in eclipse to find code
If you have the mouse over a class type or return type for a couple of seconds the documentation will pop. If when it pops you put the mouse over it, after another second or 2 you will be able to scroll. Basically there is all the info about the class.
Some shortcuts you can use to interact with your classes are:
Ctrl + 1 - See options for a methodCall or a selected snippet of code
Ctrl + Shift + H - See call hierarchy for that method
Ctrl + Alt + T is find Type it will help you quick find it.
Shift + Alt + Q - See class outline view
For further reading you can see some of the most popular shortcuts people use.
When you practice them a bit your life will be easier.
For further reading see this link: http://rayfd.me/2007/05/20/10-eclipse-navigation-shortcuts-every-java-programmer-should-know/
If you want to find out a class declaration:
F3 (Windows)
Fn + F3 (Mac)
If you want to find a reference of a given variable in a file:
Ctrl + Shift + U (Windows)
Command + Shift + U (Mac)
If you want to find a reference of a given variable in the workspace:
Ctrl + Shift + G (Windows)
Command + Shift + G (Mac)
Related
This question already has answers here:
How do I shut off the new Explorer Ctrl+F Find tool in VSC?
(2 answers)
Closed 4 months ago.
I do not want this green box to appear when pressing command + f in vscode and the sidebar is focused. i want command + f to always enable search within the file. this green box is useless to me because its functionality already provided by the superior command palette (command + p)
"workbench.list.defaultFindMode" seems to be the control for it, but valid values for this are only 'filter' and 'highlight', no way to get rid of it.
Version: 1.70.2
help?
Ah, finally found it.
remove the command + f keybinding from list.find
This question already has answers here:
How do I duplicate a line or selection within Visual Studio Code?
(22 answers)
Closed 3 years ago.
Is it possible to duplicate a selected / highlighted text to the right of the cursor in VS Code?
Meaning:
before: 123
after: 123123
In Sublime it is possible to do using CMD+SHIFT+D.
No, the feature is not available. see feature request
You can do line duplication.VS Code has two shortcuts
Shift+Alt+Down Copy Line Down editor.action.copyLinesDownAction
Shift+Alt+Up Copy Line Up editor.action.copyLinesUpAction
keyboard shortcuts
its important for developers to create duplicate
like ctrl + D in Notepad++
link ctrl + shift + D in SublimeText
it is not available in VSCode
you can try ctrl + drag mouse
There is now a editor.action.duplicateSelection command (unbound to any default keybinding) that does exactly what you want. For example,
{
"key": "alt+m", // or whatever keybinding you wish
"command": "editor.action.duplicateSelection"
}
If it is possible you will can customize your own shortcut in the configurations.
You can press cmd + k , cmd + s to open the shortcuts editor then you can find for “duplicate” word in the searchbar.
I think is better that I teach you know how to fish, not give you a fish
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.
I want to search for a list of references on one method or class in IntelliJ. Is there any shortcut like Ctrl + Shift + G in Eclipse?
I would say that Ctrl+Alt+F7 is my favorite key combination for finding usages as it gives you a nice popup with good interaction.
Otherwise you can use Alt+F7 that will show you the same information in a tool window at the bottom that will stay there.
Look at the the Default Keymap Reference in the Help menu for all the built-in shortcuts:
for searching name of methods in whole project use:
Ctrl+Shift+F
for searching classes (Files)
Shift+F6
Ctrl + F7 Find usages in file that is, to find all places where a particular class, method or variable is used in the whole project in intellij IDEA
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
What are some useful shortcuts in Eclipse?
My favorite: Ctrl+2, R to rename all instances of a variable in a class.
ctrl + shift + / to minimize all folding block.
ctrl + shift + * to expand all folding blocks.
Of course you have to have folding enabled :D
I love editing ones.
Ctrl + Shift + M = Add import
Ctrl + Shift + F = Reformat (the best)
Ctrl + Shift + O = Organize Imports
Ctrl + / = Comment
Ctrl + \ = UnComment
Ctrl + I = Correct indentation
Also this ones handy.
F3 = Goto declaration
A Whole List can be found here -->
Eclipse Shortcuts
Some of My favorite shortcuts :
1) ctrl + Shift + R //Open Resource
2) ctrl + Shift + / and \ //For Add Block and Remove Comment.
3) ctrl + Shift + O //For Auto import of packages.
4)ctrl + 7 //For inline comments.
5)Ctrl + Shift + F // Reformatting
6)ctrl + Space //Off course for intelligence
Ones I use most often
Ctrl + space auto complete.
Ctrl + / to comment a line/block
sysout to expand to system.out.println();
syserr to expand to system.err.println();
F3 for go to declaration
F4 to display hierachy
and select text and press Ctrl + Arrow UP/down, try it
This picture short cut for Eclipse will helps.It gathers most of short cuts in Eclipse in
categories.Certainly it has what your want.