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 ? 

0
6 comments

It should work as you expected. Does the same happen if you disable all the downloaded plugins?

 

0

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>|

0

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. 

0
Can you find the backup of your IDE settings and upload it to https://uploads.services.jetbrains.com ?
0

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. 

0

Please sign in to leave a comment.