How to save unchanged files

It seems that webstorm does not save files if they are unchanged. This is becoming increasingly frustrating because I am using ionic serve, which watches for file changes and sometimes it doesn't compile the changes correctly. The way I would fix this generally is by re-saving the file, which usually resets it correctly. However, webstorm does not seem to save files if they haven't been changed and the only viable workaround I have found is to add an extra line and save, which is not what I want to have to do. Is there something I am missing?

0
5 comments

Yes, only changed files are affected by SaveAll. Touching unchanged files on SaveAll would create a mess when using version control

see https://intellij-support.jetbrains.com/hc/en-us/community/posts/206060519/comments/206538979 for possible workarounds

0
Avatar
Permanently deleted user

I don't need it for save all I need it for save single file and I don't really understand that workaround

0

>I don't need it for save all I need it for save single file

Default Save action in WebStorm is Save All (normally mapped to (Ctrl+S) - this action saves all changed files in project.

there is, however, a way to save a current file only, but this action is not visible in the menu and does not have a keyboard shortcut assigned. You can assign a keyboard shortcut to it via Settings | Keymap | Other | Save Document. But this action also won't save unchanged file

0
Avatar
Permanently deleted user

Yes I already figured that much out is there no way of re-saving a single file? This is a serious issue for me and may be the cause of me not continuing to use this IDE.

1

You can't save unchanged file from the IDE

0

Please sign in to leave a comment.