I'd like to disable the Word-Wrap "feature" in XCode. Can this be done? I can't find a setting or a hotkey that will do this.
Also, before stating "long lines of code are bad-- keep them short and format the wrapping yourself", please realize two things.
First, I often keep multiple code pages open for reference, so they are each pretty small. Second, I am using XCode strictly as an editor for an existing, embedded systems project. I didn't write most of this code and much of it is 80+ characters wide because of heavy use of code indention.
Basic Editing in Visual Studio Code By default, editor. wordWrap is off but if you set to it to on, text will wrap on the editor's viewport width. "editor. wordWrap": "on" You can toggle word wrap for the VS Code session with ⌥Z (Windows, Linux Alt+Z).
To eliminate those disappearing lines on the demo computer we use in the course, he turned on word-wrap for Visual Studio. This choice keeps all of the code on the screen by wrapping long lines of code back to the left hand margin. If you like that idea, it's easy to turn on that option.
This is moved (at least as of) Xcode 12.4:
Xcode > Preferences > Text Editing > Display > Wrap lines to editor width
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With