Professional Documents
Culture Documents
1. Products
1.
hari haran
31
, 31 reputation
●11 silver badge●55 bronze badges
2.
3.
4.
5.
6.
1. Home
2.
1. PUBLIC
2. Stack Overflow
3. Tags
4. Users
5. Jobs
3.
1. TEAMS
What’s this?
2.
Free 30 Day Trial
I would like to set a margin of 80 characters, but can't find such option in the settings.
visual-studio-code
Alexey
1,35622 gold badges88 silver badges1919 bronze badges
add a comment
2 Answers
ActiveOldestVotes
104
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:
llamacorn
47244 silver badges1616 bronze badges
answered Mar 5 '17 at 15:14
alexriedl
3,59633 gold badges1212 silver badges1515 bronze badges
• 5
Search for "ruler" in Settings. You still have to edit the file, but VSCode will give assistance. – z0r Nov 12
'18 at 0:20
add a comment
Report this ad
1
Probably not an issue for the majority of modern coders, but if you really are printing on an 80-
column printer you're better off setting your margin to 79; if a line ends exactly on the 80th
column, the printer is likely to add an additional blank line via an automatic line feed. As I say,
this is only likely to affect coders who still favour dot-matrix/continuous printing.
PHPNoob
3755 bronze badges
add a comment
Your Answer
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
• Links
• Images
• Styling/Headers
• Lists
• Blockquotes
• Code
• HTML
• Advanced help
Community wiki
Post Your Answer
Not the answer you're looking for? Browse other questions tagged visual-studio-code or ask
your own question.
The Overflow Blog
• Podcast 235: An emotional week, and the way forward
• The Overflow #21: The way forward
Featured on Meta
•
Threshold experiment results: closing, editing and reopening all become more…
•
Catawiki
eCommerce
•
Team Lead Developer - High Traffic, High Scale
Amsterdam, Netherlands€60k - €90kVisa sponsor
pythonruby
•
Lead Developer - Payments
Amsterdam, Netherlands€65k - €85kVisa sponsor
ruby-on-railsruby
•
Engineering Manager - Platform
Amsterdam, NetherlandsVisa sponsor
ruby-on-railselasticsearch
Related
841
How can I customize the tab-to-space conversion factor?
990
How do you format code in Visual Studio Code (VSCode)
356
How to use Visual Studio Code as Default Editor for Git
407
Show whitespace characters in Visual Studio Code
277
Are there bookmarks in Visual Studio Code?
386
Find and replace with a newline in Visual Studio Code
546
Remove trailing spaces automatically or with a shortcut
469
How can I switch word wrap on and off in Visual Studio Code?
338
How to comment multiple lines in Visual Studio Code?
490
Switch focus between editor and integrated terminal in Visual Studio Code
Hot Network Questions
▪ Why are there ovens with control panel toward the back?
▪ Contracting indices in lists
▪ What's the difference between Kosovo's & the Confederate States of America's declaration of independence?
▪ What are the resonant frequencies for this RLC circuit?
▪ Estimate effort of a Salesforce-to-Salesforce project
more hot questions
Question feed
https://stack
STACK OVERFLOW
• Questions
• Jobs
• Developer Jobs Directory
• Salary Calculator
• Help
• Mobile
• Disable Responsiveness
PRODUCTS
• Teams
• Talent
• Advertising
• Enterprise
COMPANY
• About
• Press
• Work Here
• Legal
• Privacy Policy
• Contact Us
STACK EXCHANGE
NETWORK
• Technology
• Life / Arts
• Culture / Recreation
• Science
• Other
• Blog
• Facebook
• Twitter
• LinkedIn
• Instagram
site design / logo © 2020 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2020.5.15.36837