You can set preferences for the Developer Studio to make your daily work easier. The documentation to the different preferences can be found at:
Help → Help Contents → Java Development User Guide → Reference → Preferences or you press the F1 key when you are in a preference window.
Useful preferences are:
● Code style and formatting
The Developer Studio provides automatic code formatting features, like organizing import statements and a code formatter that formats Java code according to given standards (like indenting if statements). It also provides code templates to generate get and set methods, create try/catch block and so on.
To set code style and formatting preferences choose:
Window → Preferences → Java → Code Style and sub options.
● Compiler options
You can set the compliance level of the compiler and how errors and warnings are handled.
To set the compiler preferences choose:
Window → Preferences → Java → Compiler and sub options
● Java editor settings
The editor in the Developer Studio can be customized. You can influence the text highlighting colors and the behavior of the code completion. The Developer Studio also provides templates for recurring coding tasks like for and if statements. When you are working in the editor view, you can activate the templates by typing the <ctrl><blank> key.
To set the editor preferences choose:
Window → Preferences → Java → Editor and sub options
● Installed JRE’s
You can declare several Java Runtime Environments (JRE) in the Developer Studio. The JRE is used to run and debug the application. You can switch between the JREs so that you can test your application with the Java environment it finally should run in.
To add or modify the JRE preferences choose:
Window → Preferences → Java → Installed JREs
● Proxy Settings
To change your network connection parameters choose:
Window → Preferences → General → Network Connections