I am using an extension called Code Runner to easily compile and run with VScode. If you run a java program created with VScode on MAC with VScode on another OS, an error due to the character code will occur, so the setting to solve it is described. The trendy Coder seems to work.
I will set the character code individually. (Here, UTF-8)
"code-runner.executorMap": {
"java": "cd $dir && javac -encoding UTF-8 $fileName && java -Dfile.encoding=UTF8 $fileNameWithoutExt"
}
https://westhillworker.com/visualstudiocode-cpp/
Recommended Posts