Add new css file-type to CSS Autocomplete Package?


#1

Hi there,

i have installed the Package [https://atom.io/packages/autocomplete-css](http://CSS Autocomplete) and see some trouble with my own css files. The problem is, that my framework creates, after some changes a new file called style.mod_css

Can i upgrade the package?


#2

What framework are you using?

Let me see if I’ve got this straight:

  1. When you edit CSS, your framework saves a file with a different file extension.
  2. Since this isn’t a normal CSS extension, Atom doesn’t recognize the file as CSS, so autocomplete and highlighting don’t work.

There’s another solution to messing with packages. You can tell Atom to associate new file extensions with any of the languages you have installed. Just add this to your config.cson:

'*':
  core:
    customFileTypes:
      'source.css': [
        'mod_css'
      ]

#3

Thanks DamnedScholar! :+1:


#4

No problem. :slight_smile: