Sublime Forum

ST3 space after colon in CSS completion

#1

When working with CSS in Sublime Text 3 and auto-complete is triggered, Sublime adds a space after colon like this:

color: black;

How do I remove this space, so it would be like:

color:black;

In Sublime Text 2 was possible to change that on css_completions.py, by doing this:

~/Library/Application Support/Sublime Text 2/Packages/CSS/css_completions.py

On line 190, remove the space after the colon: l.append((p, p + ": "))

But can’t find it in Sublime Text 3.
Anyone know?

0 Likes

#2

First, make sure you have the Package Control.

Next, your need to install the PackageResourceViewer plugin.

Next, open “Tool > Command Palette” menu, type prv to bring up the PackageResourceViewer options, then select PackageResourceViewer: Open Resource. Scroll down to CSS, hit Enter, then scroll down to css_completions.py

1 Like

#3

I video (gif) for using prv is an awesome idea. That should probably be added to the package’s readme.

0 Likes