Home Download Buy Blog Forum Support

CSS: Issues while coding LESS

CSS: Issues while coding LESS

Postby officiallyWise on Sat May 11, 2013 7:01 pm

When coding CSS, the app auto-populates a semicolon when a colon is typed. This is an issue that was not present before when coding LESS

1.Set syntax to CSS
2. Type
Code: Select all
&:

3. A semicolon (;) is automatically added. This is an undesirable result while coding CSS.
officiallyWise
 
Posts: 4
Joined: Sat May 11, 2013 6:59 pm

Re: CSS: Issues while coding LESS

Postby iamntz on Sun May 12, 2013 5:35 am

Add this into your keymap file:

Code: Select all
   { "keys": [":"], "command": "insert_snippet", "args": {"contents": ":$0;"}, "context":
      [
         { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
         { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
         { "key": "selector", "operator": "equal", "operand": "source.css - meta.selector.css", "match_all": true },
         { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\}|$)", "match_all": true },
         { "key": "preceding_text", "operator": "not_regex_contains", "operand": "&", "match_all": false },
      ]
   },
iamntz
 
Posts: 898
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 14 guests