Skip to content

GulomovCreative/vscode-modx

Repository files navigation

MODX IntelliSense

Intelligent MODX, pdoTools and fenom tooling for VS Code.

Intellisense for MODX Revolution and Fenom

Installation

Plugin installation is performed in several stages:

  • Press F1 and select Extensions: Install Extensions.
  • Search and choose vscode-modx.

Or install via the Visual Studio Code Marketplace.

Features

MODX Syntax Highlighting

MODX Syntax Highlighting

MODX Autocomplete: Default Resource Content Field Tags

MODX Autocomplete: Default Resource Content Field Tags

MODX Autocomplete: System settings

MODX Autocomplete: System settings

MODX Autocomplete: Output filters/modifiers

MODX Autocomplete: Output filters/modifiers

MODX Autocomplete: Snippets and props

Note, autocomplete works with a list of predefined snippets:

MODX Autocomplete: Snippets

MODX Autocomplete: Snippet props

MODX Autocomplete: @FILE binding paths

MODX Autocomplete: @FILE binding paths

Fenom Syntax Highlighting

Fenom Syntax Highlighting

Fenom Autocomplete: Tags

Fenom Autocomplete: Tags

Fenom Autocomplete: Modifiers

Fenom Autocomplete: Modifiers

Fenom Autocomplete: Variables

Fenom Autocomplete: Variables

Fenom Autocomplete: Snippets and props

Note, autocomplete works with a list of predefined snippets:

Fenom Autocomplete: Snippets

Fenom Autocomplete: Snippet props

Fenom Autocomplete: @FILE binding paths

Fenom Autocomplete: @FILE binding paths

Recommended VS Code Settings

files.associations

Use the files.associations setting to tell VS Code to always open .tpl files in MODX or Fenom mode:

"files.associations": {
  "*.tpl": "modx",
  // or
  "*.tpl": "fenom",
}

Troubleshooting

Problem: Emmet expand abbreviation doesn't work

Check the VSCode settings, note the emmet.includeLanguages, you need to add the following value:

{
  "emmet.includeLanguages": {
    // ...
    "modx": "html",
    "fenom": "html"
  }
}

Problem: TailwindCSS intellisense doesn't work

Add to your user/project/folder settings following value and make sure the editor.quickSuggestions.strings setting is enabled:

{
  "tailwindCSS.includeLanguages": {
    // ...
    "modx": "html",
    "fenom": "html"
  },
  "editor.quickSuggestions": {
    // ...
    "strings": true
  }
}

License

FOSSA Status

About

VSCode IntelliSense for MODX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published