//**This page is in the 'old' namespace, and was imported from our previous wiki. We recommend checking for more up-to-date information using the search box.**// ====== Useful Eclipse Shortcuts ====== * **Ctrl + leftclick** to go to definition, while **Alt + left-arrow** takes you back to where you were (back button, as in a web browser) * Hightlight something + **Ctrl + Alt + h** shows all the places in the entire Eclipse workspace where the highlighted construct is used * **Ctrl + Shift + f** for autoformatting * **Ctrl + space** for autocompletion, such as autocompletion of methods * **Alt + Shift + R** can be used to rename a class/method/variable in all locations that it is used =====Setting Eclipse's autoformatting Code Style file for Greenstone Java code===== The Eclipse autoformatting file we hope to use as a standard for Greenstone's Java code contains the following. If you wish to do the same, copy the following into an empty .xml file and save this. To import this file, open Eclipse and go to Windows > Preferences > Java > Code Style > Formatter. Press the Import button and navigate to where you saved the xml file.