This guide will show you how to enable line wrapping in Atom. Depending on the type of coder you are, you might want to enable line wrapping. For me, as I read code I like to see everything without having to scroll horizontally. So I always have line wrapping enabled in my IDE of choice.
Below we can see an example where we are trying to echo a very long string. It is so long in fact, that we can not see the entire line.
In order to turn on the line wrapping we are going to enable a feature called “Soft Wrap”. To do this, we will follow the steps below.
- In the main menu select
- In the new sub menu that pops up we will want to make sure that
- Next we will click the toggle to enable the
As we can see in the image below, with the soft wrap enabled we can see the really long text string that I was trying to echo. When it reaches the edge it wraps down to the line below it. To be clear this is not splitting into a new line, it is just visually making it look this way. If we look closely at the line count we see line
14 and next we see
. which means it is a continuation of a line above it. As a result, If it was a really long string we might see several lines with
What would you like to learn about Atom next? This application has so many features that we could write articles for days! Especially if we were to dive into the plugin! Let me know in the comments below.
If you would like to suggest a new article or video to be released, please reach out via the Contact Page. I look forward to hearing your feedback and providing content that is helpful for you!