diff --git a/Commands/Save to CSS.tmCommand b/Commands/Save to CSS.tmCommand
index aea5128..6b21c6d 100644
--- a/Commands/Save to CSS.tmCommand
+++ b/Commands/Save to CSS.tmCommand
@@ -6,8 +6,8 @@
saveActiveFile
command
#!/usr/bin/env ruby
-file = STDIN.read[/lessc: ([^*]+\.less)/, 1] || ENV["TM_FILEPATH"]
-system("lessc --verbose \"#{file}\"")
+file = STDIN.read[/lessc: ([^*])+\.less/, 1] || ENV["TM_FILEPATH"].chomp(File.extname(ENV["TM_FILEPATH"]))
+system("lessc --verbose \"#{file}.less\" \"#{file}.css\"")
input
document
keyEquivalent