AndreOneti / qml-formatter

Formatter, definition and autocomplete for QML language
MIT License
18 stars 2 forks source link

Add new snippets. #9

Closed AndreOneti closed 2 years ago

AndreOneti commented 2 years ago

Two new snippets

"qsTr": {
  "prefix": "qsTr",
  "body": [
    "qsTr(\"${1:text}\")"
  ],
  "description": "Simple qsTr converter"
},
"#region": {
  "prefix": [
    "region",
    "#region"
  ],
  "body": [
    "// #region ${1:text}",
    "// #endregion"
  ],
  "description": "Simple qsTr converter"
}
AndreOneti commented 2 years ago

Add one more like

"Property changed": {
        "prefix": "changed",
        "body": [
            "${1:variable}Changed()",
        ],
        "description": "Property changed"
    }