0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【VSCode】エディタに文字数を示すルーラーを表示する方法

Posted at

settings.json にeditor.rulersの設定を追記することでエディタに文字数を示すルーラーを表示できます。

settings.json
  "editor.rulers": [80, 100, 120]  // 80文字、100文字、120文字にルーラーを表示

記述すると以下のようにルーラーが表示されます。

スクリーンショット 2024-06-19 19.45.30.png

また、ルーラーの色は workbench.colorCustomizationseditorRuler.foreground で変更できます。

settings.json
  "workbench.colorCustomizations": {
    "editorRuler.foreground": "" // ルーラーの色
  }
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?