microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.44k stars 29.35k forks source link

only use indent of 4 spaces error message #46616

Closed jasonsenssylvain closed 6 years ago

jasonsenssylvain commented 6 years ago

Steps to Reproduce:

  1. I am writing solidity code
  2. and I change setting to : "editor.tabSize": 2, "editor.insertSpaces": true, "editor.detectIndentation": false,

and it keep shows "only use indent of 4 space" what's going on?

vscodebot[bot] commented 6 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

alexdima commented 6 years ago

@jasoncodingnow Have you tried to disable all extensions?

adamsoffer commented 6 years ago

You can configure the Solhint linter in your vscode user settings:

"solidity.linter": "solhint",
"solidity.solhintRules": {
  "avoid-sha3": "warn"
}
alexdima commented 6 years ago

@jasoncodingnow Was it the Solhint linter ?

vscodebot[bot] commented 6 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

tacticalfinance commented 6 years ago

If you are using JuanBlanco.solidity extension, Solium is the default linter supported by the extension and you can configure it using the following user settings:

"solidity.linter": "solium",
"solidity.soliumRules": {
    "quotes": ["error", "double"],
    "indentation": ["error", 2]
}