text: Hi,
  i:
  I'm sure, there are preferences for ST2 to have the same behavior, but i don't know what to do. Could someone help me with this?
  Mario
  Ok, i discovered the "auto_complete_triggers" pref and set it like this:
  "auto_complete_triggers": {"selector": "source.scss", "characters": " "} ]
  Now when i hit tab it shows the available completions in the pop-up. Fine.
  But i can't find a solution for the autocompletion of variables. Is there a way to show the defined variables and not only rgb(), hsl() ... ?
  The $ is, by default, defined as a word separator. You can create a syntax specific setting with that removed and it should trigger the autocomplete menu.
  The setting you are looking for in the default to use as a base is "word_separators"
  Hi skuroda,
  thanks for your reply! I removed the $ in the syntax sprecific setting. But i don't wanna trigger the autocompletion generally with that "$". I wanted to have a trigger that shows me only the defined variables (something like "$darkgrey" or "$bluesky") when i type "$" and not all the possible properties like "rgb", "hsl" and so on.
  I was thinking, that this would be useful for many web developers when working with Sass or Less. It seems like that ist's not so easy to find a pref for ST to act like that.
  Yup, you want some intelligence built into the auto completion with isn't built into the editor (yet?). But you can modify the autocomplete list with a plugin. I put something together rather quickly and minimally tested it, so your mileage may vary. You still need to keep "$" out of the word separator list.
  [code]import sublime_plugin
  class EventListener(sublime_plugin.EventListener): def on_query_completions(self, view, prefix, locations): if prefix.startswith("$"): find_regions = view.find_all(r"\$[A-Za-z]+")
  text = set()
  for region in find_regions:
  if region == view.word(view.sel()[0]):
  continue
  text.add(view.substr(region))
  auto_complete = (x, x.replace("$", "\\$")) for x in text]
  return (auto_complete, sublime.INHIBIT_WORD_COMPLETIONS | sublime.INHIBIT_EXPLICIT_COMPLETIONS)[/code]
  Wow skuroda,
  much thanks for the work you've done! But i don't know where to put in your code. There is already a autocomplete plugin in the scss_compltions.py. And i'm not able to put it together with yours. Thats the incapability of a "design guy".
  Thanks again
  No problem. Go to "Tools -> New Plugin". Copy paste the code and save it as something like "SASS Autocomplete.py" or something (the actual name of the file doesn't matter. It should work immediately, but you can always try restarting ST. I don't know if this is something that would want to be integrated into whatever SASS package you are using. I'd be happy to take a quick look to make sure it doesn't conflict with whatever completions SASS does if you can point me to the package you are using. I did a quick google search and to my dismay...there are many listed
  The Sass package i'm using is this:
  Well, I don't think it would break anything. Have you tried creating this plugin manually and using it?
  It seems so. But some Key Bindings are driving me nuts. Using the Backspace key on a english Mac keyboard triggers some sort of toggling. I type "col" , hit tab and "color:" is there. Fine. I type "$" and ST shows me the recently used (in that opened file) color variables. But when i hit backspace and type "$" again nothing happens (just the "$" is shown - no suggestion). When i now hit backspace the 2nd time (to delete the "$") and type "$" again the variables are shown.
  I'll search the default Key Bindings to see what happens here.
  I removed the SublimeCodeIntel package. Now the autocompletion/suggestion of the variable is working. But now ST doesn't autocomplete "col" to "color:" but only to "color" (without the ":")
  Hmm, well I can't seem to get it not to show the autocomplete. Though the "code" I am testing with is just something I threw together. Could you post something where it doesn't work for you. Perhaps I will be able to reproduce it with that.
  Maybe i should start again with a fresh ST2 Installation. The more i try, the more it doesn't work like expected. My installed packages right now are: SCSS, HTML5,Package Control, SFTP, SideBarEnhancements and Theme - Soda.
  Here's a Code Example:
  $dunkelrot : #990703;
  $logograu : #CCCCCB;
  @media screen {
  /* force vertical scrollbar */
  body {
  overflow-y: scroll;
  }
  /* Layout Module Configuration */
  .ym-wrapper {
  max-width: 80em;
  margin: 0 auto;
  }
  .ym-wbox {
  padding: 1.5em;
  color: $dunkelrot;
  }
  }
  I have the default setting "auto_complete": true. I type "col" and nothing happens. No suggestions. I've to type "color:" completely. After that i type "$" and nothing happens. I've to type "$d" to see the suggestion "$dunkelrot". Strange, isn't it?
  Hmm odd. The only time I had to type "color: " completely rather than being auto completed properly was if I didn't properly end the previous statement with a semicolon. That being said, every time I entered "$" the variable names came up fine. Out of curiosity, when you manually entered the colon, did it auto insert a semi colon?