I realized the width of file in GitHub is much wider than '80' (I set 'rulers' in visual studio code as 80). My files are not beautifully displayed. What value should I set on the 'rulers' in my editor? 
How many columns for Github?
1.2k views Asked by juanli At
1
There are 1 answers
Related Questions in VISUAL-STUDIO
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Dotnet Run is not working but the application is running in Visual Studio
- Is there a way to support Tailwind @apply in Visual Studio?
- How can I eliminate compile warnings using ZLib in Visual Studio
- C++(or Visual Studio) saving the file will not preserve the original file contents
- VS Community 2022 cannot install dotnet-ef when i try to publish
- Visual Studio 2022 convert spaces to tabs on checkout and back to spaces on checkin
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- Command line error D8036 - not allowed with multiple source files with node-gyp and VS2022
- Migrate Old VS 2015 .suo file to the New VS 2022 DocumentLayout.json
- How to make one executable visual studio, that users can run?
- Use tabs instead of spaces in .csproj file in Visual Studio 2022
- Unity - scrollview/dragging breaks after specific scene inactivity
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
- Why is 'EDITBIN /STACK:2097152 w3wp.exe' cmd is giving me an LNK1342 error?
Related Questions in GITHUB
- How to update to the latest external Git in Azure Web App?
- Github Pages Deployment deploys a blank page
- Git Not In Sync with Local Branch
- How do I create a test passing badge for my yaml below
- Cant connect to any github repository from my netbeans 20
- How can i redirect pull request from main branch to another branch
- Trying to update the version.go file with the release tag from GitHub actions but its failing
- Encountering Errors Running GitHub Project: Wavelet-pixel domain progressive fusion network for underwater image enhancement - Seeking Assistance
- How can I reintroduce username an password on git using fedora?
- How do I find Github File_ID?
- Forking vs Cloning in GitHub
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- how to build nextjs app unable to build and deploy
- Plugin with id 'com.android.application' not found in Github Winlator Project
- Git commit asks for passphrase which I don't remember
Related Questions in RULERS
- Android - infinite ruler/slider to change int value
- How can I add a character count / column ruler to VS Code?
- VSCode: How to not show the editor ruler and instead display characters past column limit in a different color?
- How do I insert and hide read-only line above specific line in monaco editor?
- In VS Code rulers are not drawn for Haskell files
- Visual Studio Code rulers do not reflect in files (other windows outside of settings.json)
- Add new pattern in Entity Ruler Spacy with regex in multiple tokens
- React Measurement Image with draw line as ruler
- How do I add rulers through the entirety of the document in SSRS
- Why is my 80 character ruler between Sublime Text3 and VS Code so different?
- How to indent a long ternary condition in Php?
- VS Code wrong ruler lines
- Problem with setting indent of bullet items in textframe
- Vertical ruler in vscode language extension
- How many columns for Github?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Choosing the maximum length of your lines based on what will be "beautiful" on GitHub is ridiculous. There are plenty of good reasons to limit line length (though many programmers go beyond 80 characters these days). Shorter lines are easier to read and can help limit complexity.
The JavaScript snippet you show in your screenshot doesn't appear to contain any "artificial" line breaks. What are you planning to do, cram multiple statements onto a single line just to use up columns? How easy would that be to read?
Select a line length limit to use for your project (80 and 120 characters are popular lengths) and stick with it. If you adopt an existing style guide it will probably come with its own limits. Please, don't choose this based on how it renders on GitHub.
For prose, paragraphs automatically wrap unless you add hard breaks by ending lines with two or more spaces.