You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The trailing-spaces.trimOnSave option normally works well with VSCode's auto-save feature. However, it does not work with the auto-save feature set to onFocusChange and you change input focus by switching to another editor in the same VSCode window, and whitespaces are not removed.
Reproduction
Ensure your VSCode User Settings contain both of the following:
Add some trailing whitespaces to the file in the current editor
Focus something other than the current editor but leaving the current editor open; for instance, focus another window (Google Chrome or a different VSCode window)
Observe that the trailing whitespaces you added did get removed correctly
Add some trailing whitespaces again in that editor
Switch to a different tab in the same VSCode window
Go back to that tab again and observe that the trailing whitespaces you added did not get removed
The text was updated successfully, but these errors were encountered:
Summary
The
trailing-spaces.trimOnSave
option normally works well with VSCode's auto-save feature. However, it does not work with the auto-save feature set toonFocusChange
and you change input focus by switching to another editor in the same VSCode window, and whitespaces are not removed.Reproduction
The text was updated successfully, but these errors were encountered: