Skip to content

Cannot use tab as the trigger character for "format on type" #247651

@datho7561

Description

@datho7561

Does this issue occur when all extensions are disabled?: No

(You need to have an extension that provides on type formatting with "Tab" as the trigger character)

  • VS Code Version: 1.99.3
    17baf84
    x64
  • OS Version: Fedora Linux 41
    Linux 6.13.12
    GNOME 47.5

Steps to Reproduce:

  1. Install or launch the following minimal reproducing extension: https://github.com/datho7561/vscode-tab-formatting
  2. Create a file file.foo.
  3. Enable on type formatting
  4. Add "lorem ipsum"
  5. Hit "Enter". The file should read "alorem ipsum" followed by a newline
  6. Set the document indentation to tabs
  7. Hit "Tab"
  8. The document should read "aalorem ipsum" followed by a newline and tab. Instead, it reads "alorem ipsum" followed by a newline and tab.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugformattingSource formatter issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions