Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Atom - Remove the center line in the editor

I just downloaded the GitHub Atom Editor and I'm customizing it.

But I couldn't remove the line that is the middle of the editor.

Line in the middle of the screen.

Anyone help me out how to remove that line?

like image 986
Unknown User Avatar asked Aug 30 '14 06:08

Unknown User


People also ask

Why is there a line in Atom editor?

That's the wrap guide. It is a visual indicator of when your lines of code are getting too long.

How do you align codes in Atom editor?

Use ctrl+cmd+a on Mac or ctrl+alt+a to align multiple matches. If you want to align the first match only, call Atom Alignment:Align from the command palette.


2 Answers

This line is provided by the wrap-guide package. You have the following options to remove the line:

Option 1

Disable the wrap-guide package. Go to Atom > Preferences > Packages, type "wrap" into the search box, then wait for the wrap-guide package to show up under Core Packages, and click the Disable button there.

Option 2

Or add the following to your user stylesheet. Use Atom > Open Your Stylesheet to open the styles.less file in the editor, then add the following:

atom-text-editor::shadow {     .wrap-guide {         visibility: hidden;     } } 

Once you save the file, the line will be gone.

More info can be found here: https://discuss.atom.io/t/vertical-line-in-editor/2717

Update 2015-06-28 Updated selector due to updates in the Atom style classes. The above now works in Atom 1.0+.

like image 51
nwinkler Avatar answered Sep 28 '22 23:09

nwinkler


Disable the wrap-guide package.

Using settings-view: open by entering ctrl/cmd + , enter "wrap guide" in Filter packages input, click the package name in the sidebar, and click Disable in the main window. Or using your config.cson file: add "wrap-guide" in your your disabledPackages array.

You can't uninstall it because it is a core package (relased by Atom).

However, you can change where it shows up by changing your preferredLineLength. Using settings view, click Settings, find the "Preferred Line Length" input and enter an integer. In addition, this setting can be changed per syntax by each languages' settings (Find the language in the side bar and adjust the "Preferred Line Length " input).

like image 39
d_rail Avatar answered Sep 28 '22 23:09

d_rail