https://levelup.gitconnected.com/automatically-format-code-in-visual-studio-code-when-working-with-react-c48674a12dc5
VS Code > Extensions
Search prettier, install "Prettier - Code formatter"
CTRL + Shift + P, type "setting" to open VS Code command palette
Select "Preferences: Open User Settings", Toggle on "format on save"
Select "Default Formatter", Select "Prettier - Code formatter"
沒有留言:
張貼留言