I'm following a tutorial on how to use visualworks, and the teacher on youtube has a fancier way of seeing the code
i.e.
in this photo, his version shows (as oppose to mine in complete black)
^ in red
self in light blue
nil in pink
variables (firstname and lastname) in dark blue
How can I configure my environment to do the same?
Figured it out,
In the main window, you click on System, then select Parcel Manager
Under suggestions, click on Popular, then under its list, right click RBCodeHighliting then select Load
Related
I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are?
I'm running with the Productivity Power Tools extension and ReSharper 6.
I have not found a color legend for the bits, but here is what we have found so far;
Light Blue = Bookmarks
Blue = Error / Warning
Orange = Find Results
Red = Breakpoint
Light Purple = Other instances of the selected variable
Dark Blue = Current cursor location
Yellow = Not saved changes
Green = Saved Changes
Dark Green = Spelling error (in comment or string literal)
From the productivity power tools extension page:
Enhanced Scrollbar
We’ve been looking into ways that we can
improve the experience of navigating through code files. Our solution
is the source map which has three modes that will allow you to more
easily see the interesting artifacts in your files (edits,
breakpoints, bookmarks, errors, warnings etc) and make it easy for you
to navigate between them. The default mode is the “scroll bar only
mode” which overlays icons onto the standard scrollbar to allow for
viewing of these artifacts. In the source map mode, we’ve replaced the
default scroll bar allow you to click on any item on the scrollbar to
navigate directly to it. This source map mode also provides a preview
of the part of the document as you hover. Finally, we have the
detailed source map mode, which allows you to get a zoom out view of
your entire file. You can switch between any of these modes by
right-clicking on the scroll bar or going to Tools
Options>Productivity Power Tools>Source Map where we have a host of
other options that you can configure.
For what it is worth if you hover on the word with a spelling error a box will appear below. You then mouse over the box and a drop arrow will appear from there you can select the correct spelling or add a word to the dictionary.
I just installed Resharper and it's changed the highlight color for find results. Normally when I place my cursor on a particular symbol, say a variable called 'goat', all onscreen references to goat will be highlighted with a gray background. When I hit Ctrl+F to move through all references to goat in the document the current find result has the same gray background as all others on screen. So I have no idea which goat I'm currently at until I close the find dialog at which point the currently selected goat highlights in blue.
This makes it really difficult for me to quickly check all references to a given variable in file. I know you can change color settings in Tools->Options->Environment->Fonts And Colors, however I've been unable to find a setting that corresponds to the currently selected find result.
If the currently selected find result was any color other than gray, it would stand out, but as it is it makes Find as effective as simply clicking on a variable and having VS2010 highlight all current onscreen references.
The setting to change is "Inactive Selected Text". It is in Tools->Options->Environment->Fonts And Colors, Show Settings for Text Editor, third option down.
I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are?
I'm running with the Productivity Power Tools extension and ReSharper 6.
I have not found a color legend for the bits, but here is what we have found so far;
Light Blue = Bookmarks
Blue = Error / Warning
Orange = Find Results
Red = Breakpoint
Light Purple = Other instances of the selected variable
Dark Blue = Current cursor location
Yellow = Not saved changes
Green = Saved Changes
Dark Green = Spelling error (in comment or string literal)
From the productivity power tools extension page:
Enhanced Scrollbar
We’ve been looking into ways that we can
improve the experience of navigating through code files. Our solution
is the source map which has three modes that will allow you to more
easily see the interesting artifacts in your files (edits,
breakpoints, bookmarks, errors, warnings etc) and make it easy for you
to navigate between them. The default mode is the “scroll bar only
mode” which overlays icons onto the standard scrollbar to allow for
viewing of these artifacts. In the source map mode, we’ve replaced the
default scroll bar allow you to click on any item on the scrollbar to
navigate directly to it. This source map mode also provides a preview
of the part of the document as you hover. Finally, we have the
detailed source map mode, which allows you to get a zoom out view of
your entire file. You can switch between any of these modes by
right-clicking on the scroll bar or going to Tools
Options>Productivity Power Tools>Source Map where we have a host of
other options that you can configure.
For what it is worth if you hover on the word with a spelling error a box will appear below. You then mouse over the box and a drop arrow will appear from there you can select the correct spelling or add a word to the dictionary.
I'm tweaking my environment settings and I've got all my colors happy except this one.
When you hover over the "+" or "-" the entire affected area gets highlighted in white-ish color. This is annoying when you have a dark background like I have using Ragnarok Blue (or ZenBurn)
What Display Item is this so I can adjust?
By going through each display item I discovered it's the "Collapsible Region"
I suppose that should have been obvious.
Here is my scenario. I like my color scheme. I have a dark blue background with light grey text. I have the Plain Text option in VS 2010 in Tools | Options | Environment | Fonts and Colors set to be a dark grey for the foreground and dark blue for the background:
alt text http://www.elbalazo.net/post/vs_plaintext_color.jpg
But I need to fix this major problem/annoyance which is when I highlight some text and then lost focus with my mouse it turns almost completely white!
alt text http://www.elbalazo.net/post/WhiteBackgroundVS2.jpg
And worse, when I mouse over the little section lines of code on the left, the selection of the entire editor goes white with a light grey foreground for text:
alt text http://www.elbalazo.net/post/WhiteBackgoundVS.jpg
Not able to figure out where and how to fix this. I don't see a way. Note: I'm using R# 5.0+ so I don't know if that has anything to do with this color issue or what...maybe it's overriding some VS stuff or this is just a VS issue I don't know..probably just not looking in the right area under Fonts and colors...but a lot of the item foreground elements are read only.
UPDATED:
I think it might be (not sure) this one but I can't test it as the foreground is locked and not editable:
alt text http://www.elbalazo.net/post/vs_brachmatching_color.jpg
I'm pretty sure your first problem can be solved by setting the colors on the 'Highlighted Reference' option in the Fonts and Colors window. If ReSharper is override this setting I couldn't tell you. I don't have it installed on this machine. As for your second problem I have no idea.
If you get too irritated at trying to figure out the color options you could also try Studio Styles for pre-made ones. I believe that is where I got the one I use currently.
I believe the setting you are looking for is "Inactive Selected Text". Found while trying to figure out why my selected search texts were not highlighted in an obvious manner.
Might be a year late... answering for future searches.
ReSharper is indeed overriding some of your settings, but those settings can be found in the same screen, towards the bottom of the listbox.
In Tools | Options | Environment | Fonts and Colors, scroll to the bottom of the 'Display Items:' listbox, and you should see a series of settings that start with ReSharper. For instance, the 'ReSharper Current Line Highlight` was causing me issues when I changed my theme to use a dark background.
Hope that helps.
The highlight for matching references is the "Highlighted Reference" background color (as Sean Copenhaver pointed out).
The highlight for the outlining region hover is "Collapsed Region" (as Brandon Satrom pointed out in his comment on the original question). The foreground color is the color used in the outlining margin and the background color is the color used under the text. You can also disable that highlight by disabling Tools->Options->Environment->General->Enable rich client visual experience, though that will disable other things (animations, gradients, etc.)
The brace matching rectangle is the highlight that appears when you insert or put the caret on a brace (e.g. ")", "]", "}"). It only lets you override the background color because you can't use it to change the foreground (text) color.
I had this same problem (much later) with VS 2010 and R# 7.1.
Disable the "Highlight current line" option in ReSharper > Options > Environment > Editor.
That option, when enabled, causes the VS 2010 color options for Highlighted Reference to not apply.
FWIW I had this problem without ReSharper and in my case tracked it down to the Brace Matching (Rectangle) color setting which looked nothing like what I was seeing in the editor but allowed me to fix the issue anyway.
So this is weird but I was having the same problem and it simply went away when I went to Tools->Options->Environment->Fonts and Colors and changed the font size to 18. I then went back in the same menu and changes it back to 10 (default) and the editor no longer highlights the collapsible regions white. Strange behavior.