0

In my VSCode user settings, I have a default ruler at 80 chars using:

"editor.rulers": [80],

When editing git commits — to assist in adhering to the 50/72 rule (1, 2) — I'd like to override the default with the following rulers:

"editor.rulers": [50, 72],
Gama11
  • 31,714
  • 9
  • 78
  • 100
Beau Smith
  • 33,433
  • 13
  • 94
  • 101

1 Answers1

2

Given the comments on my question above, I have a working solution:

{
  "editor.rulers": [80],
  "[git-commit]": {
    "editor.rulers": [50, 72]
  },
}

More info on VSCode Language specific editor settings

Beau Smith
  • 33,433
  • 13
  • 94
  • 101