I have found this question with no apparent working answer to it here.
Can WebStorm automatically format the code when I am writing?
I basically have the exact same question. Really handy feature even in VSCode, saves a lot of time pressing the format shortcut.
Does anyone have an idea how to enable it if even possible?
答案 0 :(得分:2)
在Settings | Editor | General | Smart Keys
中启用在键入'}'时重新格式化阻止时,在输入'} '时会自动重新格式化随附的代码块;
重新格式化添加分号尚未实施,请投票给IDEA-122070
答案 1 :(得分:1)
WebStorm can't automatically format the code when you are writing . visit the page to get detail about code format in Webstrome Visit page