yaml: Fix indentation with dictionary when editing (#40913)
Closes #39570 Release Notes: - Fixed indentation with dictionary when editing YAML file. --------- Signed-off-by: Benjamin <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,13 @@ brackets = [
|
||||
|
||||
auto_indent_on_paste = false
|
||||
auto_indent_using_last_non_empty_line = false
|
||||
increase_indent_pattern = "^[^#]*:\\s*[|>]?\\s*$"
|
||||
# 1st block to match basic elements followed by ':' like 'test: ' for example
|
||||
# 2nd block to match for first element in an array if it's an object
|
||||
# For example:
|
||||
# ```yaml
|
||||
# test:
|
||||
# - first: one
|
||||
# ```
|
||||
increase_indent_pattern = "(:?^[^#]*:\\s*[|>]?\\s*$)|(:?^\\s*-[^#]*:\\s*(:?#+.*)$)"
|
||||
prettier_parser_name = "yaml"
|
||||
tab_size = 2
|
||||
|
||||
Reference in New Issue
Block a user