The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 1,417β€…    Votes:  6β€…    βœ… Solution
Tags: gedit   scrolling  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

URL: https://askubuntu.com/q/1103573
Title: How can I prevent line wrapping and instead allow horizontal scrolling in Gedit?
ID: /2018/12/21/How-can-I-prevent-line-wrapping-and-instead-allow-horizontal-scrolling-in-Gedit_
Created: December 21, 2018    Edited:  December 21, 2018
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


On the window bottom of gedit click on the Line number / Column number section:

gedit text wrapping.png

Uncheck the Text wrapping option and a horizontal scroll box will then appear. Lines will no longer be wrapped.


If you want the setting to be permanent change your preferences. Use: Edit => Preverences => View => Enable text wrapping:

gedit preferences menu.png


You can’t access preferences if you are using sudo -H gedit though. You need to do this with regular user using gedit only. Then you can have sudo inherit your user preferences with a script such as this: How can I sync my root gedit with my user gedit's preferences?

⇧ Protecting WSL-Ubuntu and WSL-OpenSSH (unfiltering port 443 correctly, to use just these) Messed up my PATH environment variable and can't login to desktop  β‡©