Josh Miller

Click here to return to the index.


My Visual Studio Code Tweaks

Here's where I keep record of the customizations I've done to Visual Studio Code Studio Code

Add a Vertical Ruler

I try to keep my code to 80 columns. Not always possible, but it helps to add a line at column 80. Open VSCode and do the following.

  1. Go to File > Preferences > Settings
  2. Select the User settings
  3. Use the search box to find editor.rulers. The first result should be Editors:Rulers
  4. Click "Edit in settings.json"
  5. Copy and paste (or type in) the following json
  6. 			{
    				"editor.rulers": [80,120]
    				"workbench.colorCustomizations": {
    				"editorRuler.foreground": "#ff4081" //or the color of your choice
    				}
    			} 
    		
  7. Save your changes by pressing ctrl-s or by clicking File > Save.