This is mainly for js2-mode, but would love to have it in python or other programming languages as well.

I would like to have the cursor placed as seen in the below image when hitting enter inside an empty object "{}". It's default behavior is placing the cursor at the end, and I have to manually go to command mode / go up / insert mode / and set the object. (I am using evil-mode).

enter image description here

I think this is the default in VsCode, but I'm not exactly sure. Can this be done in emacs?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.