<table width="100%" class="navigation"> <tr> <td width="33%" align="left"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/IntelliJ+IDEA+for+Eclipse+Users">Previous</a></td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3EPrevious%3C/a%3E%3C/td]> <td width="33%" align="center"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/IntelliJ+IDEA+for+Eclipse+Users">Top</a></td> <td width="33%" align="right"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Working+in+Eclipse+Compatibility+Mode">Next</a></td> </tr> </table> |
No, with IntelliJ IDEA you never need to worry about saving your files when you switch to another application, compile or run your code, perform a VCS operation and so on. Files are saved automatically on every frame deactivation. In addition, as an additional safety measure, you can enable auto-save if the application is idle for a specified period of time. By default, auto-save on idle takes place every 15 seconds by default. By opening the Settings dialog box, you can change the auto-save period in the General tab. In case you need to roll back any unwanted changes, you can use Local History--the IntelliJ IDEA built-in version control system.
In IntelliJ IDEA you have three types of completion that work differently so that you can always pick what's best for the code you're working on.
When you just need to quickly complete an obvious statement, you press
Ctrl + Space |
If you need more precision, but don't want to scroll through a possibly very long list of options, you then use
Ctrl + Shift + Space |
The third type of code completion is Class Names Completion and it is activated through
Ctrl + Alt + Space |
For more information, have a look at: http://www.jetbrains.com/idea/features/code_assistance.html. |
Yes. In Eclipse, the editor virtual space is disabled by default; in IntelliJ IDEA, instead, the setting is enabled by default. To change the setting, go to Settings dialog box and select the Editor node. In the right pane, you just uncheck the Allow placement of caret after end of line option.
By default Eclipse highlights all occurrences of the identifier that is currently under the caret. To enable this same behavior in IntelliJ IDEA, select Highlight usages of element at caret in the same dialog box shown above.
Finally, note that IntelliJ IDEA poses an upper limit to the number of editor tabs you can keep open at the same time. This number is adjustable via the Settings dialog.
When the maximum number of tabs is reached and you open a new file then the one with the less frequently used file is automatically closed. This behavior, however, can be modified through the same settings page as above.
Yes, sure. Code templates are predefined code snippets invoked by typing an associated abbreviation. For example, in IntelliJ IDEA by writing fori and then typing
Tab |
for (int i = 0; i < ; i++) { } |
Note that sometimes code templates may include parameters that are used to automatically adjust code to the insertion context.
In IntelliJ IDEA, you configure code templates through the Settings dialog. You click
File → Settings |
Ctrl + Alt + S |
The most notable difference between code templates in Eclipse and IntelliJ IDEA is in the bag of predefined templates you find out of the box in IntelliJ IDEA.
IntelliJ IDEA comes with a static code analysis tool that scans your code looking for specified patterns and templates. The ultimate goal of a static code analysis tool is detecting aspects of code which may originate compile errors or run time exceptions.
For code inspections to work nicely, you must provide a list of issues IntelliJ IDEA has to look for. Such configuration is known as an inspection profile and defines the types of problems to be sought for, severity of these problems, and color scheme of alerts. Inspection profiles can be defined at the IDE and project level. IDE level profiles are available in all projects created on the current machine. Project level profiles can be used by all team members that have access to a given project.
To configure inspection profiles, you open the Settings dialog and click on Inspections within the Project Settings area.
The inspections dialog box allows you to add or remove a particular inspection from the profile.
Note that you can also configure inspections on the fly when you get a notification of a code issue. A notification consists of a bulb icon displayed close to the code that didn't pass the inspection. You press
Alt + Enter |
Eclipse lacks a similar feature, but it can count on some ad hoc plug-ins such as FindBugs which offer a service that can be compared to code inspection to some extent.
<table width="100%" class="navigation"> <tr> <td width="33%" align="left"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/IntelliJ+IDEA+for+Eclipse+Users">Previous</a></td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3EPrevious%3C/a%3E%3C/td]> <td width="33%" align="center"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/IntelliJ+IDEA+for+Eclipse+Users">Top</a></td> <td width="33%" align="right"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Working+in+Eclipse+Compatibility+Mode">Next</a></td> </tr> </table> |