Sublime Forum

Problem with tab key binding

#1

I have been using Sublime Text 2 for a little over a few weeks now, and just a little while ago, my key bindings changed and I couldn’t get them back like I wanted, so I uninstalled/reinstalled Sublime Text so everything would be clean, I also deleted my AppData folder. I use the Emmet package a LOT so I also reinstalled it and it works fine using the tab key to complete the desired action in an HTML file, but for some reason when I’m in a CSS file, I hit tab and get undesirable results. for example, I type the following:

.header

and I hit tab to indent and it changes to

:;

What do I need to change to keep this from happening? Thanks!

0 Likes

#2

This is the default behaviour of Emmet. To disable it, go to the menu > Preferences > Package Settings > Emmet > Settings - User

Add this to the file it will open:

{
    "disable_tab_abbreviations_for_scopes": "source.css"
}
0 Likes

#3

Thanks! This seems to have worked!!!

0 Likes

#4

Now for some reason, Emmet isn’t working in CSS sheets! I have uninstalled/reinstalled Sublime Text several times to start from scratch only to have it mess up for no apparent reason! Is there an alternative to Emmet? THis is about to drive me crazy!

0 Likes