Intellij - Why is the cursor moving to next line after pressing enter?
Answered
To demonstrate, let me show you what I mean in the following steps.
1. <d {After typing this, I press TAB to autocomplete}
2. <div> cursor </div> {That is the cursor position after auto-completion}
BUT BUT!!!!
3. <div></div>cursor {Why does my cursor moves out of there when I press Enter/Return}. Shouldn't it be like this after Step 2, when I press Enter/Return
<div>
cursor
</div>
4. How do I fix this ?
Please sign in to leave a comment.
It should work as you expected. Does the same happen if you disable all the downloaded plugins?
Yes, I disabled all my plugin and then restarted the intellij. I am still facing the same issue.
1. div {press TAB for autocompletion}
2. <div>|</div> {press Enter/Return for spacing}
instead I get this
3. <div></div>|
https://www.jetbrains.com/help/idea/configuring-project-and-ide-settings.html#restore-defaults
Restoring the deault IDE settings solved the issues.
Although, all of my recent projects dissapeared from the menu and I had to download and reinstall all plugins. Not quite sure what caused it in the first place.
I cannot find backup of my previous IDE settings as it was never exported. I use macOS. But I have upload the backup setting for current IDE, if it helps.