Sublime Forum

Cannot save via "CTRL+S", must close file to prompt save

#1

Please help me troubleshoot an issue with the save key command. For some reason, CTRL+Shift+S (“Save As”) is working for me but CTRL+S (“Save”) is not.

To save changes to a file, I must CTRL+W (“Close”). At that point, I receive an alert window “file.txt has been modified, save changes? yes, no, cancel”

I’m not sure what I’ve done to create this issue. I have not installed any packages lately or changed configurations. I’m not working with unusual files in unusual locations and have tried many different combinations.

I tried setting and unsetting … "atomic_save": false, … to true in my user settings.

**
Sublime Text 3, Stable Channel, Build 3083
Windows 7**

user preferences:

[code]{
“color_scheme”: “Packages/User/Monokai (SL).tmTheme”,
“font_size”: 9,
“ignored_packages”:

	"Vintage",
	"Markdown"
],
"tab_size": 2,
"translate_tabs_to_spaces": false

}
[/code]

  • Cory
0 Likes

Sublime will not save file
#2

Looks like something overrode your ctrl+s key binding, likely a plugin.

Type sublime.log_commands(True) in the console and press ctrl+s to observe results. If the command run is not “save”, something is wrong.

You can use FindKeyConflicts to find the package that’s overriding the binding.

0 Likes

#3

Sorry for the late reply but for anyone struggling with this:

I open console, run sublime.log_commands(True)

It returns: command: browser_refresh {"activate_browser": true, "auto_save" true, "browser_name": "Firefox", "delay": 0.5}

I found that under Preferences > Key Bindings - User

I deleted it. Closed the window to save … yawn … Restart. All fixed!

I’m sure I did it to myself but I can’t figure out how.

0 Likes

#4

I also met this question. It is because revert encoding.

0 Likes

#5

I havent touched a single thing in that regard and it was broken from start.

0 Likes

#6

Could you try the debugging advice given by FichteFoll

0 Likes