master-css-language-service
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.84 • Public • Published

Master CSS

Master CSS Language Service for Visual Studio Code

On this page

Install to Visual Studio Code now

Features

Code-completion

Smart suggestions for style names, values, semantics and selectors.

code-completion

Syntax highlighting

Highlight class names to make them easier to read and identify.

syntax-highlighting

Master CSS has pioneered applying syntax highlighting to class names in markup, which solves the problem of unreadable classes that are too long.

Generate preview

Hover over Master class names to see their CSS generation.

rendering-preview

Settings

We have given friendly presets based on mainstream frameworks and languages. If you think there are other commonly used ones that should be built in, please send a feature issue to us.

The following examples are default values:

editor.quickSuggestions

"editor.quickSuggestions": {
    "strings": true
},

masterCSS.languages

Configure which languages should apply the Master CSS Language Service.

"masterCSS.languages": [
  "html",
  "php",
  "javascript",
  "typescript",
  "javascriptreact",
  "typescriptreact",
  "vue",
  "svelte",
  "rust"
],

masterCSS.files.exclude

Configure a glob pattern to prevent Master CSS Language Service from being applied.

"masterCSS.files.exclude": [
    "**/.git/**",
    "**/node_modules/**",
    "**/.hg/**"
],

masterCSS.classNameMatches

Configure Regex patterns as conditions for triggering Suggestions and generating previews.

"masterCSS.classNameMatches": [
  "(class(?:Name)?\\s?=\\s?)((?:\"[^\"]+\")|(?:'[^']+')|(?:`[^`]+`))",
  "(class(?:Name)?={)([^}]*)}",
  "(?:(\\$|(?:(?:element|el)\\.[^\\s.`]+)`)([^`]+)`)",
  "(classList.(?:add|remove|replace|replace|toggle)\\()([^)]*)\\)",
  "(template\\s*\\:\\s*)((?:\"[^\"]+\")|(?:'[^']+')|(?:`[^`]+`))"
],

masterCSS.previewColor: true

Render color boxes by color-related class names as previews.

masterCSS.previewOnHover: true

Preview the generated CSS rules when hovering over a class name.

masterCSS.suggestions: true

Enable autocomplete suggestions.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0-beta.840latest
2.0.0-beta.1400beta

Version History

VersionDownloads (Last 7 Days)Published
2.0.0-beta.1400
2.0.0-beta.1390
2.0.0-beta.1380
2.0.0-beta.1371
2.0.0-beta.1360
2.0.0-beta.1350
2.0.0-beta.1340
2.0.0-beta.1330
2.0.0-beta.1320
2.0.0-beta.1310
2.0.0-beta.1300
2.0.0-beta.1290
2.0.0-beta.1280
2.0.0-beta.1270
2.0.0-beta.1260
2.0.0-beta.1250
2.0.0-beta.1240
2.0.0-beta.1230
2.0.0-beta.1220
2.0.0-beta.1210
2.0.0-beta.1200
2.0.0-beta.1190
2.0.0-beta.1180
2.0.0-beta.1170
2.0.0-beta.1160
2.0.0-beta.1150
2.0.0-beta.1140
2.0.0-beta.1130
2.0.0-beta.1120
2.0.0-beta.1110
2.0.0-beta.1100
2.0.0-beta.1090
2.0.0-beta.1080
2.0.0-beta.1071
2.0.0-beta.1060
2.0.0-beta.1050
2.0.0-beta.1040
2.0.0-beta.1030
2.0.0-beta.1020
2.0.0-beta.1010
2.0.0-beta.1000
2.0.0-beta.990
2.0.0-beta.980
2.0.0-beta.970
2.0.0-beta.960
2.0.0-beta.950
2.0.0-beta.940
2.0.0-beta.930
2.0.0-beta.920
2.0.0-beta.910
2.0.0-beta.900
2.0.0-beta.890
2.0.0-beta.880
2.0.0-beta.870
2.0.0-beta.860
2.0.0-beta.850
2.0.0-beta.840
2.0.0-beta.830
2.0.0-beta.820
2.0.0-beta.810
2.0.0-beta.800
2.0.0-beta.790
2.0.0-beta.780
2.0.0-beta.770
2.0.0-beta.760
2.0.0-beta.750
2.0.0-beta.740
2.0.0-beta.730
2.0.0-beta.720
2.0.0-beta.710
2.0.0-beta.700
2.0.0-beta.690
2.0.0-beta.680
2.0.0-beta.670
2.0.0-beta.660
2.0.0-beta.650
2.0.0-beta.640
2.0.0-beta.630

Package Sidebar

Install

npm i master-css-language-service

Weekly Downloads

2

Version

2.0.0-beta.84

License

MIT

Unpacked Size

8.71 kB

Total Files

3

Last publish

Collaborators

  • 1aron