Skip to content

CSS and SCSS indentation using tabs is off with lines with the color decorator #34725

@zmoazeni

Description

@zmoazeni
  • VSCode Version: 1.16.1
  • OS Version: Ubuntu Linux 16.04 Gnome

Steps to Reproduce:

  1. Start a blank file /tmp/foo.css/
  2. Paste this code in there:
/* I've intentionally indented with 2 spaces */
.foo {
  padding: 10px;
  color: #123;
}
  1. Go to the bottom right and click the tab size box and select "Convert indentation to Tabs".
  2. The color line has slightly different indentation.

Reproduces without extensions: Yes

Here's a screenshot with code --disable-extensions:

foo css_023

Believe me, I prefer spaces for indentation, but I'm on a couple code bases where the team has chosen tabs. And this is a weird annoyance.

This goes away if I set: "editor.colorDecorators": false in the settings.

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)editor-coreEditor basic functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions