Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

vscode code formatter cannot format

//Solution 1:
Select VS Code -> View -> Command Palette,
type: Format Document With...
		    //For Java:
			choose "Language Support for Java by Redhat(default)".
			//For other languages:
 			Then Configure Default Formatter... and then choose Prettier - Code formatter.
//Solution 2:
File > Preferences > Settings > Search for "default formatter"
Default Formatter -> esbenp.prettier-vscode
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vscode #code #formatter #format
ADD COMMENT
Topic
Name
9+3 =