How to add a right margin to the Visual Studio Code editor?
Navigation to follow
- File -> Preferences -> Settings
- Select the tab option: Applies to only => 'User' or 'Workspace'
- Search for 'rulers'
- open the setting.json under 'rulers'
- add the line
"editor.rulers": [80]
Version I'm using is 1.49.1
According to the Visual Studio Code's user and workspace settings documentation, you can add rulers which mark specified columns.
Search for "ruler" in Settings. Click on the link to edit the .json file. Add the property below for rule at 80 characters.
Example setting:
// Columns at which to show vertical rulers
"editor.rulers": [80],