I started to use Idea after using Eclipse for years. Now I found some features of Idea very basically absent. One of them is this; I write an if
or try
and a curly bracket {
then I push Enter
, new line comes with the same indentation of if
:
// some code...
if (someBoolean) {
// <- cursor comes here
// <- not here
}
How can I make this correct, and write new line without starting to write an extra tab
?
Edit: This happens on JavaScript files. No problem when using Java. I checked that there is no plugin available for "JavaScript Support" as it is mentioned in comments.
As of today, there is no JavaScript Support plugin. I can't find it by browsing it.
This matrix explains the situation: http://jetbrains.com/idea/features/editions_comparison_matrix.html
There is no JavaScript support for Community Edition.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.