I have a blue box and a green line next to line numbers in studio. What are these and how can I get rid of them?
Blue box on the left is a bookmark. To toggle (turn on and off) a bookmark, place a cursor on the line and press Ctrl+F2 (or in menu Edit > Bookmarks > Toggle Bookmark). Bookmarks are useful tool. With F2 you can quickly jump to the next one.
Green bar (also yellow, and also orange in VS2010) is visual indicator that that line has been changed. More info here. The feature is useful, and you get used to it after a while, and think nothing of it. If you want to disable this feature go to menu Tools > Options > Text Editor > General and uncheck "Track changes".
Related
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.
Visual studios 2013 is showing a black flag looking icon in the left gutter of my code. It doesn't seem to have any meaning and there is nothing particularly special about that line of code. The code works fine, I just want to know why this icon is displayed and what it means.
It may be bookmark or it may be the line at which searched text is found. In this screenshot, the black mark at line 55 shows the line in which search text is found(when we search using Ctrl+Shift+F keys) and one at line 58 is bookmark.
Bookmark can be removed by holding holding Ctrl and pressing K twice. There is also option to remove it in VS menu, same icon as on the line.
Bookmarks are put on the code where we want to navigate more frequently. There is icon in VS menu shown with the arrow and bookmark icon to move forward and backward.
It could be a bookmark. See main Visual Studio menu Edit - Bookmarks.
If you are using dark theme this is a white flag. Ctrl+K, Ctrl+K removes the flag.
To elaborate on the answer given by #Imad. The icon at line 55 can be the result of a search (Ctrl+Shift+F, or Ctrl+F). You remove it by either clearing or closing the Find Results pane.
Or it might be an error indicator from the most recent compilation. These appear in the Error List pane. Fix and recompile to remove it.
Line 58 shows a bookmark. Remove it with Ctrl+K, Ctrl+K on the line in question.
When you do a Search in VS using Ctrl+shift+F -> Find all -> click on a result from the find results tab -> you can see the black pin pointing the matching line in the code.
The answer is here - Black dash / line on visual studio 2012 left margin
Is it possible to change the color of the bars on the left of the screen that changes to green if the line is saved, yellow if not, etc.? I couldn't find one in the "Fonts and Colors" tab of the Options menu, or on MSDN
After reading through all of the entries in the options menu I found it haha
In Debug-mode, the row currently executed is highlighted yellow and a yellow arrow is shown. Is it possible to turn the highlighting of the row off/on?
In VS2010: Menu Debug -> Options and Settings / General - Checkbox "Highlight entire source line for breakpoints and current statement.
Tools -> Options -> Fonts and Colors.
Find "Current statement" in the list and change the background to whatever your text editor background is. You might also want to change the other "Current ..." settings.
Is there any way to hack visual studio so that it displays the line numbers in smaller font size like the way Notepad++ does? I'm using Consolas at size 12 and the line numbers just look so ugly.
Thanks.
Tools > Options... > Environment Fonts and Colors > Display Items > Line Numbers
You should be able to mess with fonts and sizes there.
EDIT for the people whose hands need to be held:
Follow this click path after you open Visual Studio 2008 (most likely by double-clicking on its icon):
Tools > Options... > Environment Fonts and Colors
"Tools" is in the menu bar at the top of the screen, and is most likely the fourth option from the right. Once you click on "Tools" a menu should come down, and you should click the "Options..." option, which is the very very last one. A new window will pop up with some junk on the right and some more things to click on on the left. Those things on the left determine what options you'll be setting on the right. Click the "Environment Fonts and Colors" option, which should be the second option.
Then, make sure "Show Settings For:" is set to "Text Editor". Click on "Line Numbers" in the listbox that says "Display Items". It is located underneath the "Font (bold type indicates fixed-width fonts):" dropdown box (that textbox with the arrow on the right side that when you click it, a whole bunch of options show up). It should be the 5th option in the "Display Items" box. After you do this, you can adjust your font, font size, color, whatever your little heart desires.
Once you're done, make sure to hit the "OK" button in the lower right corner of the window where you just made all your adjustments. Your new settings should be reflected!
:\
Even though Jason is correct in his directions, he even answered your question in a round about way.
all text editor font is the same
when you have changed one of the font properties.
So in short. No you can not adjust individual fonts for items in the actual text editor, though you can adjust almost everything else through the Option dialog.
Hope this helps.