How to enable line wrap in Xcode only for the console? - xcode

I'm using Xcode 11.3.1 with line wrapping disabled. In the editors, the code is not wrapped, but the console output is wrapped. I like it that way.
I just installed Xcode 11.5 on another Mac and I cannot recreate these settings there. If I toggle the "Wrap lines to editor width" option in the Settings menu, the setting affects both the editors and the console. Is there a way to set this option independently for these views? How can I recreate the behavior that I see in Xcode 11.3.1?

As of Xcode 13, it appears line wrapping is implemented independently per editor window. From the release notes: "Xcode’s console now supports toggling line wrapping through the Editor > Wrap Lines menu item. (3669727)"
I have several editors open at the moment, including the console, and the wrapping attribute is specific to each window.

Related

Xcode11 Editors (via "Add Editor to Right") are disabled

It has been working all this while since I upgraded to Xcode11.2. A couple of days back noticed it and now it's not allowing me to add an editor to the layout. Similar to Editor changes introduced in Xcode 11.
Tried:
Restarting Xcode
Rebooting MacBook
No Xcode update pending in AppStore
Any other suggestions to try before reinstalling the Xcode?
Current State for Xcode:
Disabled Editor add option
Disabled Editor option via Menu->Editor
Update A:
After using "Adjust Editor Option"
This Assistant is not the same as regular editor.
An editor would allow the user to independently open any file (and not always show to counterpart files). Plenty of visual space as using external monitor 24".
Update 2:
It seems to be an issue with the current project only (perhaps some messed up .xcodeproj setting?). Opened another project, and I'm able to see the "Add editor on right" just fine.
Unfocus the Editor
Turned out to be that Editor was in focused mode. As soon as an editor is in focused mode, Xcode hides the other editors and disables "adding editors to right" option on the menu and right bar.
Use the following key combination to toggle the focus-unfocus the editor.
Control + Shift + Command + Enter
Or use the
Assistant Editor
Assistant is now under the editor option menu (left itme).
Also you can use control+option+command+return shortcut
Add Editor
The other one that is disabled is Add Editor on Right. Some times its getting disabled because there is not enough space to show another editor. You can change the position of it to below by holding option and click. This will convert it to Add Editor Below

How to activate multi-line command line in Firefox DevTools?

How to make the console of the Firefox DevTools multi-line?
I am aware of the Shift+Enter keyboard shortcut, which makes the command line go to the next line. Though like in Firebug, I want to vertically separate my console into command line and results part, but I can not find that functionality.
You can try the scratchpad. Go to Settings >> Available Toolbox Buttons and check the box for scratchpad. Refer the screenshot:
Once done, you'll have a notepad-like icon in your developer console navigation bar on the right side.... Click on it and it will open a scratch pad on which you can write code and execute...
Good Luck.
Firefox Developer version(v70) has multiline console which can be activated with ctrl+b (on linux at least, I havent found the shortcut in the offical docs). So this will soon show up in mainline FF i guess.
The command line the Firefox DevTools has a "smart multi-line" feature. That means it detects when a command is not finished and automatically inserts a line break, e.g. when you write document. and hit Enter. As you mentioned, you can also insert a line break manually by pressing Shift+Enter.
The DevTools also offer a completely separate command editor panel called Scratchpad, which you can enable via the settings (under the Default Developer Tools* section).
There is currently no multi-line editor as a side panel like Firebug's Command Editor, but it is already requested.
This is also described in the migration guide for Firebug users.

Xcode 6.3 shows random files instead of counterparts in assistant editor

I always have my Xcode assistant editor open with counterparts option. It's very handy to have an *.m file opened at standard editor while having corresponding *.h file in assistant editor.
After recent update to version 6.3 Xcode started to show random instead of corresponding headers quite often. Several clicks to "four squares" icon and mode usually brings it back (but it's very annoying).
Do you experience this too? How to fix it?
Note: deleting DerivedData didn't helped
As a workaround, one could use the Reset Editor command with the keyboard shortcut Command+Option+Shift+Z (US keyboard layout). If your keyboard layout doesn't match, you can see the key binding in View->Assistant Editor->Reset Editor. A word of caution, though, this will close any additional Assistant Editors you may have opened (the ones that open by clicking "+").
Another thing I noticed is the bug happens when you are switching Xcode windows or tabs but not when you are switching files within the same tab.
It looks like it's a just bug after all. I filed a bug report rdar://20684654. For a workaround see the accepted answer.
UPDATE: it's fixed in Xcode 6.4 beta

Xcode Line Wrapping setting doesn't work

I'm trying to disable line wrap in Xcode 4.3.2 (4E2002), but the setting doesn't seem to work. I seriously HATE line wrapping and it makes me super-unproductive. I've always had it turned off before, but since the latest XCode-update, it is enabled regardless of setting.
Is this an Xcode bug?
This is my settings dialog:
This comes by some files you have set Wrap line in Show the File inspector.
Please choose a file. View -> Utilities -> Show File inspector then deselect Wrap lines in Text Settings section.
I had >ONE< file out of two dozen that was wrapping it's text in the XCode editor. Although I don't know how/why the file got into this state, I figured out what it was and how to fix it.
If you show the XCode right-hand Utilities pane, and select the Document icon at the top left, you'll see a variety of settings relevant to that one file, including it's name, type, and location. Below that are some "Text Settings" values, including a checkbox for "Wrap lines". If that box is checked, it overrides the XCode preference and wraps the lines.
This picture shows the XCode editor areas, in case you are confused: XCode Editor Areas

Multiple editor windows

One feature I found missing in earlier versions of Xcode 4 was opening an editor as a separate window. Has this feature been put back?
I don't want to go back to MDI hell.
In the Xcode preferences window, under general, there is "Double click navigation." You can set that to use a separate window or a separate tab.

Resources