Search code examples
visual-studio-codenewlineautomatic-semicolon-insertion

Why VScode creating new line on entering each character?


While typing each character, vscode puts a semicolon and move to the next line. Here I used to type 'import' but it appears as ' i; m; p; o; r; t; '. How can I solve this problem?

This is how the characters appear on vscode


Solution

  • You are in a JavaScript file (ends with .js) and your JavaScript settings are auto-formatting the code.