Skip to content

Instantly share code, notes, and snippets.

@wcdz
Created June 11, 2022 01:52
Show Gist options
  • Save wcdz/1dfcfd699a71ccd3cbbb320116e71d17 to your computer and use it in GitHub Desktop.
Save wcdz/1dfcfd699a71ccd3cbbb320116e71d17 to your computer and use it in GitHub Desktop.
Configuracion del .json para permitir italic en todos los temas de vscode
//Este codigo es para el json para temas que no sean el de codelyTV
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": [
          //following will be in italic (=FlottFlott)
          "comment",
          "entity.name.type.class", //class names
          "entity.name.function",
          "keyword", //import, export, return…
          "constant", //String, Number, Boolean…, this, super
          "storage.modifier", //static keyword
          "storage.type.class.js", //class keyword
          "entity.name.method.js",
          "entity.name.class.js",
          "entity.name.tag.doctype",
          "entity.other.attribute-name",
          "entity.other.attribute-name.tag.jade",
          "entity.other.attribute-name.tag.pug"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      },
      {
        "scope": [
          //following will be excluded from italics (VSCode has some defaults for italics)
          "invalid",
          "keyword.operator",
          "constant.numeric.css",
          "keyword.other.unit.px.css",
          "constant.numeric.decimal.js",
          "constant.numeric.json"
        ],
        "settings": {
          "fontStyle": "italic"
        }
      }
    ]
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment