Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8365321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:37:51+00:00 2026-06-09T12:37:51+00:00

Ok, here is what I want: I write .scss files, not .sass files On

  • 0

Ok, here is what I want:

  1. I write .scss files, not .sass files
  2. On saving the file, I get the corresponding .css file in the same folder

Now there are plenty of SASS plugins on Sublime Text2 but none seems to provide anything beyond syntax highlighting for me.

Any suggestions on how to get auto-compiling working on Sublime Text2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:37:52+00:00Added an answer on June 9, 2026 at 12:37 pm

    I didn’t find any existing plugins that did this, so here it is:

    Assuming you’ve installed the SCSS plugin from Package Control, you can save this as Packages/User/SCSS.py.

    import sublime_plugin
    import subprocess
    import os
    from threading import Thread
    
    def compile(input_file):
        output_file = os.path.splitext(input_file)[0] + ".css"
        cmd = "sass '{0}':'{1}'".format(input_file, output_file)
        subprocess.call(cmd, shell=True)
    
    class SCSS(sublime_plugin.EventListener):
    
        def on_post_save(self, view):
            scope = (view.syntax_name(view.sel()[0].b)).split().pop()
            if scope == "source.scss":
                input_file = view.file_name()
                t = Thread(target=compile, args=(input_file,))
                t.start()
    

    Of course, this would be better as an official Package Control plugin with user configurable settings (where to save files, on/off, etc), but this meets your requirements and doesn’t block the editor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here i want to make one file and write some data in this file
Here's what I want to write: groups[m][n] = groups[m - 1][n] or ++gid Here's
I want to write a simple web proxy, for exercise. Here's the code I
Here's my code: sentenceToTranslate = raw_input(Please write in the sentence you want to translate:
All Here i want to run .sh file via system call in android NDK.
I'm not entirely sure if I can do what I want here, but I
Here's the method i want to write: public static IEnumerable<String> GetTableNames(this IQueryable<T> query) {
OK so here is what I'm doing -- I want to write a .net
here is a code which i want to write. int opt; po::options_description desc(Allowed options);
i want to write a code in a way,if there is a text file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.