In Sublime Text 3, how do I edit my pre-existing snippet files? Is there a way of doing this within ST?
At the time of writing, there doesn't seem to be a straightforward answer to this anywhere on the web.
Tools -> Developer -> View package file -> search for the existing snippet. Change and save.
To edit an existing Snippet, click on the Pencil in the top right corner of any Snippet. A new window will pop up, where you can replace the default text or settings with something new. To save your changes, click Update. To delete a Snippet, click the Trash Can in the top right corner of that Snippet.
Sublime Text will present you with an skeleton for a new snippet. Snippets can be stored under any package's folder, but to keep it simple while you're learning, you can save them to your Packages/User folder.
Go to Developer Option: Go to the developer option and click on New Snippet. A file will be open with some pre-written code.
Custom snippets are saved in a .sublime-snippet
file that you create when you first save the snippet.
By default, these are placed in the "User" package. You can either browse to the file like you would any other file, or using PackageResourceViewer: Open Resource
-> User
-> [name of your snippet file]
For those of you that like a visual instruction here it is:
Then, you can find your snippet like this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With