In Webstorm editor, pressing Return after "{" creates two blank indented lines before the matching "}"

I don't know why this just started happening. Say, I start to type an arrow function. When I get to "{}" with cursor inside the braces, I press Return and two blank lines are created inside the braces:

const sayHello = (msg) => {


}

I haven't knowingly changed any setting. I restored Webstorm to its default settings, and this behavior stopped. But then a few minutes after, it started again.

OS: MacOS
Project: https://drive.google.com/file/d/1S-jn8AJvOx39HQrIs9f9DwGQV7Zlca6Q/view?usp=sharing

3
5 comments

can't reproduce with your project

could you share your settings (Manage IDE Settings > Export Settings) and idea.log (Help > Show Log in Finder)?

0

Do you have https://plugins.jetbrains.com/plugin/11349-aws-toolkit plugin installed? According to users' reports, it can be a culprit

2

That's true. After disabling AWS Toolkit plugin the issue disappeared.
Thanks, Elena

1

Elena, after retracing my steps, I also did find out that it's the AWS plugin that is responsible for this, but unfortunately forgot to update my post here. As Artur mentioned above, disabling it solved the problem.

Thanks!

0

Please sign in to leave a comment.