You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, for Ansible language mode, which I have configured, I expect this line:
- name: test
to have the cursor indent two spaces (below the "n" of "name") when I press Enter, which it doesn't.
I then also expect this example to indent two spaces from the start of the "d" character in "directive", which it doesn't, when I press Enter:
- name: testdirective:
In other words, for Ansible language mode in vscode , I expect the special - name: test structure to always be followed by an indentation. Technically, in pure yaml, that's a list element with dicrionary, which I would expect to be followed by an auto "-" in normal yaml, with no indentation, meaning I wanted to continue the list, but not in ansible.
Then for any dictionary following that, I expect an autoindent every time only a dictionary key is specified (the value will be indented on the next line), but no additional autoindentation if a value is specified after a key (in this case, the cursor should align with the beginning of the previous key, since the next line will represent the next item in the dictionary, which already works).
life5ign
changed the title
YAML autoindentation doesn't work
YAML (Ansible file type) autoindentation doesn't work
May 3, 2022
We have written the needed data into your clipboard because it was too large to send. Please paste.
Issue Type: Bug
YAML files and Ansible files do not autoindent.
VS Code version: Code 1.66.2 (dfd34e8, 2022-04-11T07:49:24.808Z)
OS version: Linux x64 5.13.0-7620-generic
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (28)
(6 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: