[QT05] Speed up your workflow with Sublime snippets!

preview_player
Показать описание
Ever find yourself typing the same general text, over and over again? Repeated text entry is slow, prone to errors, and can hurt consistency. Sublime has a powerful tool to enter customizable, reusable text: Snippets.

Snippets can be used to easily enter standard, boilerplate text to make document creation easier, but the power doesn't end there. With variables and fields, you can easily add customization to quickly inject a block of text and alter key portions as you need,

00:00 - Introduction
00:37 - Why use Snippets
01:47 - Snippet Examples
05:55 - Creating Snippets
07:03 - Optional Snippet Data
08:48 - How to trigger snippets
10:46 - Setting Snippet contents
12:22 - Using Snippet fields
13:48 - Cursor location after snippet expansion
15:27 - Using Mirrored fields
16:18 - Regex field manipulations
19:14 - Closing Thoughts

Plugin 101: Be a Sublime package developer!

#SublimeText #QuickTips #Snippets #Tutorial

Рекомендации по теме
Комментарии
Автор

This is a game changer for me! Thanks for making my life easier with this info!

atenleggedninja
Автор

very help full i follow your post regularly, great stuff

harshapanchanam
Автор

oh all your videos are on sublime great sir i can only thing how much more i will learn from you sir
#keepUpTheGoodWork sir

Divyansh-Tiwari
Автор

great video !
unrelated note, you can use windows 10's dark theme so that you don't get your eyes burned when you open the file explorer ☺.

amjadbenhedhili
Автор

Great video sir. keep going. I have a question. Are you working for Sublime Text Company

rishabhsemwal
Автор

Love your stuff! I'm trying to get used to the Selection->Expand Selection bindings but I can't find any good documentation online as to when they apply/don't apply. For instance, I'm editing an html file with 2 spaces instead of tab for indentation: does this throw off the "Expand selection to indentation" (is it looking for actual tabs?). Several of them seem to not quite do what I want, like what is difference between Expand to Scope and Expand Selection. I'm on 4077 btw, trying these out with subl --safe-mode because I figured something was conflicting.

craigdanielmaceacher
Автор

custom extension not working auto completion unless ctrl space

skyblaze