Skip to content

Detect Indentation automatically after creating a new file and paste some code into it #151304

Description

@mercury233

Issue Type: Bug

  1. Turn Editor: Insert Spaces and Editor: Detect Indentation on
  2. Create a new file, the indent mode is "Spaces: 4"
  3. Paste some codes with tab as indentation
  4. The language is automatically detected, but the indent mode is still "Spaces: 4"

VS Code version: Code 1.67.2 (c3511e6, 2022-05-17T18:15:52.058Z)
OS version: Windows_NT x64 6.1.7601
Restricted Mode: No

Extensions (3)
Extension Author (truncated) Version
vscode-css-formatter aes 1.0.2
copilot Git 1.25.6056
format-html-in-php rif 1.7.0
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdc:30486549

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-untitled-editorsManaging of untitled editors in workbench window

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions