In the Xcode 14 version there are these sticky headers that show where we are in the current flow of code, they cover up to 3 lines, my problem is my entire top of editor is now covered with 3 lines of Xcode menu and other 3 lines of these sticky headers, is there a way to try and turn them off in Xcode 14, they seem to cover almost 20% of screen area on my 13 inch device also they seem to hide the relevant code I am currently typing .. thanks
Source Editor
New Features
Xcode now pins elements of your code structure to the top of the editor as you scroll through a document. To toggle this behavior, use “Show: Code structure while scrolling” in Xcode’s Text Editing preferences. (10582250)
https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes
Go to Xcode > Preferences > Text Editing > Display > Code Structure When Scrolling
Related
In Xcode 10 (and earlier) we could have two editors vertically stacked on top of each other. I have not managed to do that in Xcode 11, only horizontally stacked, which is not optimal using my rotated monitor (using my monitor "in portrait" mode).
Is it possible to vertically align editors?
Choosing File > New > Editor Below will add an editor below the current editor and tell Xcode to vertically stack future editors for that project. You can also choose View > Change Editor Orientation to toggle stacking editors vertically and horizontally.
Thanks to #Mark's answer I knew that it was possible to do vertical alignment of editors, but just now I also discovered that the good old shortcut gets updated according to current Editor aligment.
CMD + SHIFT + O ('Open quickly')
Enter name of type/file you would like to open in a new editor, select the file in the list
Followed by
ALT + ENTER to open the selected file in a new editor (using latest preferred alignemt)
In the VSCode editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult because you can't just pull the scroll bar quickly all the way down but have to carefully position the cursor so you can still see your code.
Very similar to How to make Visual Studio editor stop scrolling past bottom of a file?, but comments have pointed out that question/answer is for Visual Studio. This answer is for VSCode on the macOS and Windows.
The correct answer is seen here: https://stackoverflow.com/a/40588828/1189470
There is a configuration option provided in VSCode for the functionality you specified. To enable it, go to File -> Preferences -> user settings
On the right side of the editor in settings.json paste the below line at the bottom (before closing bracket), save and close.
"editor.scrollBeyondLastLine": false
This will prevent the editor from scrolling beyond the last line.
This is now exposed as a simple checkbox labeled "Editor: Scroll Beyond Last Line" in File/Apple -> Preferences.
If just for readability you would like some space at the bottom of the file - a configurable amount - try this setting as of v1.43:
editor.padding.bottom in pixels
Editor> Padding: Bottom
Controls the amount of space between the bottom edge of the editor and
the last line.
and/or
editor.padding.top // but this isn't sticky in the sense that you can scroll right past the padding top and it is gone. It doesn't stay.
probably a quick one:
what is this grey waves left oft the map mode of scroll bars?
scroll bar http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-92-metablogapi/4265.image_5F00_12B0AD0A.png
2nd last screenshot from article here:
http://blogs.msdn.com/b/cdnstudents/archive/2014/01/21/visual-studio-tips-and-tricks-enhanced-scroll-bar.aspx
with some luck I found it is part of the Productivity Power Tools 2015
https://visualstudiogallery.msdn.microsoft.com/34ebc6a2-2777-421d-8914-e29c1dfa7f5d
it seems to show the scope of blocks/braces.
Scrollbar markers
The blocks are also marked on the Scrollbar with previews. As usual, you can turn this on/off through Tools Options > Productivity Power Tools > Other extensions > Show code structure in the margin.
(source: s-msft.com)
I saw it in a MVA video, and it was not the first time, they use tools or features they do not explain...
This is a new feature in Visual Studio 2013. You can preview the code by just hovering over the scroll bar & not actually scrolling. The width of the scroller could be adjusted (according to the 2nd link in your question - 2 last screenshot has Wide as the width).
How to set it?
Tools -> Options -> All languages -> Scroll Bars
All settings wrt to scroll bar are present here.
Xcode 3 had the nifty widget
that split an editing screen in two. I don't see that in Xcode 4. Has Apple decided that I don't need that anymore? ;-)
Middle button under the "Editors" in the top right will split beside each other. I don't likd that as much as the stacking one in xcode 3 though...
EDIT: You probably have to navigate to the same file to get it "split". Again, not as easy as xcode 3...
I am using visual studios 2008. My laptop has the max screen res of 1366x768.
What can i do to get more reading space? i was thinking of making the font smaller but it would be more helpful if i can make everything smaller (toolbar icons, text, etc)
The only improvement i done so far was remove a bunch of things under the toolbar so i have only one line. Actually for this project i remove the standard bar so i have have the solution and text directly under the menu with no toolbar. What else can i do to maximize reading space.
Tools > Options > Environment > General > Uncheck "Show status bar"
Tools > Options > Text Editor > All Languages > Uncheck "Navigation bar"
Install the "Hide Main Menu" extension available here.
Enable Auto-hide the taskbar in your Windows Taskbar properties.
That should get you at least 5-7 more lines.
Dual screens. The more pixels the better. I like 1920x1280 extended to across a matched monitor with vertically split tabs.
Probably not the answer you are looking for, but really, it HELPS A LOT.
Ok ok:
Try Lucida Console as a font - it's readable at 8pt - and fixed width!
Hit Alt+Shift+Enter to get into Full Screen mode.
Float all your "helper" windows and use Ctrl+Tab to get to them. (Click using mouse)
Pin your Windows Task Bar to the left or right of your screen to give more vertical reading space.
What I do is unpin all the various tool windows and views. Unpin the Solution Explorer, Properties viewer, Output etc. and the Toolbar. This leaves you with just the coding window and small bars around that allow you to hover over the edges of the window and see everything you just unpinned.
set the Solution explorer on the right to Auto-Hide, close the error window when possible (as in when you're not fixing errors), and try and drop the number of toolbars vertically to 1. You can also change the size of the text down by going to Tools > Options > Environment > Fonts and colors but i wouldn't shrink the text unless you have good vision. I recommend Consolas 12 Point for your code; it's a bit big but very nice looking!
I got rid of the toolbars altogether and made things like the Solution Explorer autohide. I came to the realisation that the only toolbar button I ever used was a custom tool one I'd put there (I use the menu for that now). I'm running at 1920x1200 so real estate wasnt an issue - I just wanted less visual distractions. Just me and the code.