Editor Setup
All editor configs support the same server settings.
Full settings schema
settings.json
{
"solidity-language-server": {
"inlayHints": {
"parameters": true,
"gasEstimates": true
},
"lint": {
"enabled": true,
"severity": [],
"only": [],
"exclude": []
},
"fileOperations": {
"templateOnCreate": true,
"updateImportsOnRename": true,
"updateImportsOnDelete": true
}
}
}Lint values
Foundry lint config reference (lint_on_build): https://www.getfoundry.sh/config/reference/linter#lint_on_build
lint.severity:"high","med","low","info","gas","code-size"lint.only/lint.excluderule IDs:incorrect-shiftunchecked-callerc20-unchecked-transferdivide-before-multiplyunsafe-typecastpascal-case-structmixed-case-functionmixed-case-variablescreaming-snake-case-constscreaming-snake-case-immutableunused-importunaliased-plain-importnamed-struct-fieldsunsafe-cheatcodeasm-keccak256custom-errorsunwrapped-modifier-logic
Notes
- Empty arrays for
severity,only,excludemean "no filter". - Defaults are all enabled (
true) with empty lint arrays. - For file rename workflows, editors may require explicit save-all to persist buffer edits to disk.