Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Sublime Text

For the full settings schema, see Setup Overview.

Required package

  • LSP — Language Server Protocol client for Sublime Text

Install via Package Control: Ctrl+Shift+PPackage Control: Install PackageLSP.

LSP configuration

Add the following to LSP.sublime-settings:

LSP.sublime-settings
{
  "clients": {
    "solidity-language-server": {
      "command": ["solidity-language-server", "--stdio"],
      "selector": "source.solidity",
      "settings": {
        "solidity-language-server": {
          "inlayHints": {
            "parameters": true,
            "gasEstimates": true
          },
          "lint": {
            "enabled": true,
            "severity": [],
            "only": [],
            "exclude": []
          },
          "fileOperations": {
            "templateOnCreate": true,
            "updateImportsOnRename": true,
            "updateImportsOnDelete": true
          },
          "projectIndex": {
            "fullProjectScan": true,
            "cacheMode": "v2",
            "incrementalEditReindex": false
          }
        }
      }
    }
  }
}

Lint options reference

Lint options (severity, rule IDs, only, exclude) are documented in Setup Overview → Lint values.