When you add a field - it appears as: $(number:DEFAULT CONTENTS)
if you want the contents to be indented by default, you can either add the tab within the default contents segment ( in which case when you cycle through the replaceable elements, that tab and all data will be highlighted to be replaced ), or you can put the tab before the data…
If you see my example, the reason I don’t indent the 3 lines starting with // at the beginning to match the indentation of <content… is because those tabs would appear in the output… As it stands, I can add a quick description, give it a unique id, and give it code - for some reason I skipped 3… but $4 is tabbed so that code will be tabbed and the highlighted code which can be replaced when I start typing is --// Hook Contents
---- more…
When a snippet is used, as far as I know - and there may be a way to change the behavior - tab will cycle to the next replaceable element… I personally have the options / settings configured to use tab instead of space, or enter because I kept having issues with enter causing auto-complete to finish something which I didn’t want finish… Now, I have the issue where when I press tab while trying to align code, it’ll auto-complete some of the time…
Here are my current settings regarding auto-complete:
"auto_complete_commit_on_tab": true,
"auto_complete_cycle": true,
"auto_complete_delay": 0,
"auto_complete_selector": "meta.tag - punctuation.definition.tag.begin, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
}
],
"auto_complete_with_fields": true,
"auto_match_enabled": false,
it’s likely the commit on tab, cycle and with fields options may be influencing the options… If they aren’t responsible then it may be another I’m not aware of… Hopefully this helps…
I keep getting 500 error on post which is why this response has taken a lot of time…
I keep getting 500 error on post which is why this response has taken a lot of time…