-
Notifications
You must be signed in to change notification settings - Fork 36.5k
Closed
Labels
editor-coreEditor basic functionalityEditor basic functionalityfeature-requestRequest for new features or functionalityRequest for new features or functionality
Milestone
Description
- VSCode Version: 1.8.1
- OS Version: any
Steps to Reproduce:
- Set the following settings:
{
"editor.tabSize": 3,
"editor.insertSpaces": true,
"editor.detectIndentation": true
}- Open source file that uses 3-space indentation
- Notice guessed indentation is not 3-spaces (typically guesses 4)
After attempting to debug this it became clear pretty quickly. The indentationGuesser is designed to work with 2, 4, 6, and 8 spaces.
So is it feasible to make the indentation guesser work with odd-number space indentation? If not there should probably be something somewhere to tell you the indent detection only works with 2, 4, 6, 8 spaces.
AiryShift, kscharlund, cmerriga and Astrantia
Metadata
Metadata
Assignees
Labels
editor-coreEditor basic functionalityEditor basic functionalityfeature-requestRequest for new features or functionalityRequest for new features or functionality