How to create a SNIPPET in SUBLIME TEXT

Опубликовано: 29 Сентябрь 2024
на канале: John Starfire
358
3

Let's see how to use snippets in Sublime Text. Snippets are a very useful way to avoid writing always the same code that are requested to start some projects (for example all that code you have to write to create a window with pygame making a game in Python or the title, head tags for an html file or any kind of annoying stuff you have to put into some file everytime). If you want to avoid wasting time rewriting it or you do not want to go find templates you can have saved somewhere, you can use a simple word to recall that text/code and it will appear magically in the page pressing TAB. You also have the chance to change easily some "customizable" part of the text (for example the title of an html file and other text in that file) with a simple press of the TAB key that will make you "travel" throug the different parts of the text that you want to customize in the snippet for the particular purpose of that text or code you want to create. Check the video and you will see what I do mean, if my explanation isn't clear. Bye and see ya soon.