ARTICLE AD BOX
VSCode's formatter doesn't do anything to the following snippet:
function funciton1() { ... } function function2() { ... }How do I get it to insert a newline after the function block?
function funciton1() { ... } function function2() { ... }I do not want that to happen with the following snippet though:
if (...) { ... } else { ... }VS Code's formatter itself doesn't control rules like this. That kind of formatting logic typically comes from ESLint.
You can add this rule to your ESLint config to achieve the intended behavior:
New contributor
d4c4n is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Explore related questions
See similar questions with these tags.
