Vscode: Save automatically when refactoring

Created on 10 Apr 2018  路  7Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.22.1
  • OS Version: macOS

It's a feature request, not a bug report.

Just like the feature "Save automatically when Search & Replace", after refactoring the code (by pressing F2 key or using context menu), the VS Code should save the file(s) automatically.

feature-request rename

Most helpful comment

A temporary workaround is to use File > Save All (Ctrl+K S).

All 7 comments

A temporary workaround is to use File > Save All (Ctrl+K S).

Has this really been open for more than a year with no progress, or am I missing something here?

PLEASE!

Yes, please put in a preference where refactoring or symbol renaming just does it and saves rather than open all the files unsaved with the changes. If one uses source control, then it's easy to revert the changes anyway. I was bewildered when I used symbol renaming and 4 other files opened unsaved rather than just changing everything in place.

Seriously surprised this isn't a thing already. This makes refactoring terribly cumbersome.

This feature request has been open for 2 years, are there any updates @jrieken @mjbvz?

What's the state of this?
Seems like the usecase is common enough.
It's really suboptimal to see dozens of opened & unsaved files on every moderate refactor:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

borekb picture borekb  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments

trstringer picture trstringer  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments

vsccarl picture vsccarl  路  3Comments