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?
Please sign in to leave a comment.
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
I don't need it for save all I need it for save single file and I don't really understand that workaround
>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
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.
You can't save unchanged file from the IDE