Skip to content

Wrong tab size for yaml files #56676

Closed
Closed

Description

Issue Type: Bug

The editor isn't respecting the default tab size for yaml files.
The default tab size is 2 but the editor incorrectly uses 4.

Steps to reproduce:

  • Open Preferences > Settings and search for "yaml"
  • Confirm that "editor.tabSize" for yaml files is set to 2
  • Create a new yaml file
  • Note that the number of spaces is set to 4

VS Code version: Code 1.26.0 (4e93618, 2018-08-13T16:25:59.521Z)
OS version: Linux x64 4.17.14-202.fc28.x86_64

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2799)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 19.03GB (9.10GB free)
Process Argv /usr/share/code/code --unity-launch
Screen Reader no
VM 0%
Extensions (10)
Extension Author (truncated) Version
EditorConfig Edi 0.12.4
indenticator Sir 0.6.0
auto-close-tag for 0.5.6
auto-rename-tag for 0.0.15
vscode-docker Pet 0.1.0
java red 0.29.0
vscode-java-debug vsc 0.11.0
vscode-java-pack vsc 0.3.0
vscode-java-test vsc 0.8.0
vscode-maven vsc 0.10.0

Activity

  1. vscodebot commented on Aug 17, 2018

    @vscodebot

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

  2. abkieling commented on Aug 17, 2018

    @abkieling
    Author

    It looks like EditorConfig extension is causing the issue.

  3. locked and limited conversation to collaborators on Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions