Add following to settings.json: { "editor.codeActionsOnSave": { "source.fixAll.eslint": true } } Make sure 'editor.formatOnSave' not enabled.