Home Download Buy Blog Forum Support

div.test >>> into >>> <div class="test"></div>???

div.test >>> into >>> <div class="test"></div>???

Postby Klikerko on Wed Mar 23, 2011 10:17 pm

Hi guys,

I was using ST 1.4 for some time and there I had feature where I would write div.test+(tab) and that will create div with class test automatically. I don't remember was this some plugin or something else but my question is can I have this option enabled in ST2?

Thanks
Klikerko
 
Posts: 9
Joined: Wed Mar 23, 2011 10:14 pm

Re: div.test >>> into >>> <div class="test"></div>???

Postby atomi on Wed Mar 23, 2011 11:20 pm

instead of tab try ctrl+space after div.myclass
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: div.test >>> into >>> <div class="test"></div>???

Postby Klikerko on Thu Mar 24, 2011 1:40 pm

Great, that works! Thanks
Klikerko
 
Posts: 9
Joined: Wed Mar 23, 2011 10:14 pm

Re: div.test >>> into >>> <div class="test"></div>???

Postby tstrokes on Thu Mar 24, 2011 4:34 pm

Or you can turn tab_completion on in the User File Preferences.
Code: Select all
// When false, tab will only trigger snippets or insert a tab character. Set
// it to true to make it insert the best matching completion from any source.
"tab_completion": true
tstrokes
 
Posts: 17
Joined: Wed Dec 03, 2008 6:39 pm

Re: div.test >>> into >>> <div class="test"></div>???

Postby Klikerko on Fri Mar 25, 2011 2:10 pm

That worked too :) I was just not aware of the syntax before. Thanks
Klikerko
 
Posts: 9
Joined: Wed Mar 23, 2011 10:14 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 31 guests