![]() Just use and abuse it, and you will learn so much. You can generate / override method signatures in child classes. Select an element and use Refactor Rename (or its keyboard shortcut) to rename that variable, field, method, class, etc. So many more uses and use cases for Ctrl + Space that can be found. Autocomplete after typing in new, generates you a skeleton for a new call, which you can tab through and fill in. Autocomplete after typing in test, will allow you to generate the skeleton of a JUnit test case method. And if you do it right after you assign something to a collection or a list, it will fill in the loop variables for the for each loop. But the real eclipse masters know that, hitting Ctrl + Space when you type in for or foreach will show you autocomplete options for generating a for loop or for each loop. But hitting Ctrl + Space when you have nothing typed shows you all members and properties available. For example, hitting Ctrl + Space when you are in the middle of typing will show you all members and methods that begin with your text. This one is probably commonly known for autocomplete in eclipse, but not many people know that it is also context sensitive. Ctrl + Space : One of the two most important keyboard shortcuts that eclipse offers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |