79337360

Date: 2025-01-07 21:20:11
Score: 0.5
Natty:
Report link

I have the same issue that VSCode cannot pick up the my .editorconfig config for my SQL scripts.

Turns out I missed the * character to wildcard all SQL files in my directory.

Here is an example of my .editorconfig file.

# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = true

# Indentation override for all SQL files
# make sure you add the * to wildcard all your files.
[*.sql]
indent_style = space
indent_size = 2

Hope it helps.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Whitelisted phrase (-1): Hope it helps
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • High reputation (-1):
Posted by: Eric