Sublime Forum

C Snippets and Sublime builds randomly deleted. (ST3)

#1

Hi, I realised that my custom snippets and builds got deleted. I placed them in the C++ folder and intially I didn’t actually have access to the snippets that came with ST3 because they were in a binary format so I used a package viewer plugin for st3 which allowed me to extract and alter the snippets.

However, I altered the default snippets and these changes remained. But for some odd reason all my custom made snippets i.e that already didnt exist in the folder are no longer there and neither are the sublime builds. Lucky the snippets are easy to redo and the builds I had backed up. However, why did this happen in the first place?

What could have caused this - I suspected an update or something but I don’t recall one happening recently.

0 Likes

#2

I guess you extracted a C++ package installed by Package Control and modified its files? Very bad idea! They are deleted or overwritten each time Package Control updates the package.

Considering a portable Windows setup I would suggest to organize all your custom snippets under a folder in C:\Apps\SublimeText\Data\Packages\User (or %APPDATA%\SublimeText\Packages\User)

0 Likes

#3

Yes I did. I didn’t know. I think putting the snippets in a User directory in Packages is the best way to avoid it happening again.

Thank you!

  • would their be an issue if i called the folder C?
    I mean there doesn’t exist a C folder anyway.
0 Likes

#4

I never experienced such an issue. Folder name shouldn’t be the reason. ST only reads those files. Package Control interacts with folders containing package-metadata.json file only.

Maybe any other 3rd party package which intends to manage snippets?

0 Likes

#5

I mean the only reason i said is because i had a Java folder which was with some builds - but I never extracted the Java snippets - i never really needed them. But the Java folder contents remained.

0 Likes