QB64Official / vscode

QB64 Extension for Visual Studio Code.
MIT License
14 stars 3 forks source link

The extension is overriding the tab/number of spaces settings in VSCode #92

Open LordDurus opened 1 year ago

LordDurus commented 1 year ago

I removed the settings for tabs and spaces. These are the current settings.

"breadcrumbs.enabled": true, "files.trimTrailingWhitespace": true, "editor.formatOnSave": true, "editor.wordWrap": "off", "editor.autoIndet": true, "explorer.autoReveal": true

DualBrain commented 1 year ago

I'm not sure this issue has been resolved; I've had ongoing "odd" behavior where sometimes the tab size appears to be 3... I don't have 3 anywhere in my settings. What I've ended up doing is using the following:

  "editor.detectIndentation": false,
  "editor.insertSpaces": true,
  "editor.tabSize": 2

This does appear to be working as desired. If I set the tabsize alone, it doesn't always work and not sure what the circumstance is/isn't where it does - but more often than not it doesn't. There are some tooltip hints around this that mention indentation detection, which is why I disabled detectindentation; once done it now appears to function as desired. So not sure if there is something related to indentation detection that may be causing this within the extension.

LordDurus commented 1 year ago

The extension does set the "editor.autoIndet": true It'ts not the settings detectIndentation, insertSpaces or tabSize.

It's possible the autdIndet has something to do with it.