Hi I'm having trouble changing the color of my function color. I'm using material theme and I change change almost all of the colors besides the function calls. Anyone experience this problem and know how to fix it? Is it listed under another heading? I'm currently using it for C/C++
In "Setting | Editor | Color&Fonts| C/C++" you see the code preview. It has "from context" selection option. Just click over the function call or any other word in preview to customize the color settings.
Note! You need to "Save as" new color scheme before you start change it.
I had the same problem and what fixed it was getting cygwin properly installed and set up. Once I did that, the highlighting options I selected showed up after the first build.
Related
I'm using color sets in my app inorder to make it easier to organize the colors for different views, but when I go to compile I get the error "Color references are only available on macOS", but I haven't got the error till now.
I tried cleaning the build folder, and restarting xcode, but it doesn't do anything, the error still keeps showing up. What can I do?
anwser:
I was able to solve the problem by not using any of the Mac default colors in the color selection. I had to use rgb to select the color in the asset folder.
Echoing the answer in the original question, you can get around this issue by avoiding using any Mac system colors. You'll see any Color sets that do use system colors will be grayed out.
Click on the color squares and press Delete. Then fill in the equivalent hex codes or RGB, and it should work!
Very new to VIM so any explanation on how to configure would be very appreciated.
Find one here that is close to Visual Studio.
Download it and put colorscheme foo in your .vimrc (_vimrc on Windows) where foo is the name of the colorscheme.
My "Bandit" colour scheme was originally based on the highlighting from Visual Studio (version 6 I think) and Matlab. It's probably not a perfect match, but it may be of interest.
It's available here and, in case the screenshot below doesn't work, there's a screenshot here. Note that you'll need to do:
set background=light
before configuring the colour scheme as otherwise it will default to a dark background.
You need to search in the different color schemes. I don't know if there's one who is the same as in Visual Studio, but maybe you'll find a better one. :)
Type a little piece of code, then :colorscheme, a space, and press Tab to see every colorscheme.
You can download new colorschemes here : http://www.vim.org/search.php
The "VC" color scheme (found here) is very close to looking like the default Visual Studio color scheme.
I created a gui with MATLAB's GUI Builder. After some changing around, an image of an old plot is still loaded into the gui on start up. How can I tell MATLAB to disregard that old plot?
I added a toolbar by adding
set(hObject,'toolbar','figure');
into the "gui_OpeningFcn". Now I decided that I don't want the toolbar in my gui any longer. But when I remove this line, the toolbar is still created. How do I tell MATLAB not to load the old stuff anymore? And where do those settings get stored anyway?
EDIT: I investigated a little bit, and this behaviour can be reproduced as follows:
create a new gui with the GUI builder and add plot
add the line "set(hObject,'toolbar','figure');" into the "*_OpeningFcn"
add a simple function into the plot (adding something like "plot(handles.axes1,[1:10], [1:10])" into the "*_OpeningFcn" will do)
run the gui and save the figure by clicking the save button in the toolbar
now when I remove "set(hObject,'toolbar','figure');" and "plot(handles.axes1,[1:10], [1:10])" from "*_OpeningFcn" and run the gui, the toolbar and the plot will still be displayed
I am sure this behaviour is intentional. But where are those settings stored, so I can reverse them?
I found out how to turn off the toolbar.
Select in the GUI builder view->Property Inspector
In the ToolBar field select "none"
Edit: I also found a way that the old plot is not loaded into the gui.
I created an empty "createFcn" for the plot.
and ran the gui once afterwards
then I deleted the createFcn again
But I very much doubt that this would be the standard way to achieve that. So please don't hesitate to give a better solution.
see title for question
"Open Tools->Options->Fonts and Color. Change the background color of the text editor and all text tool windows."
There is however a bug there :
"I have changed the background color for the code definition window in VS2008. However, when I close VS and open it again, the background color returns to the default color."
Response from microsoft :
"
Thank you for reporting this bug. We didn't discover it in time to fix it for Beta1, but you should see it fixed for the next release of VS 2010."
Link to the error report and a patch that will fix the problem here.
On you current install, go to Tools | Import and Export Settings.
Choose Export selected environment settings and click next.
Click the top box to remove the check box from everything.
Expand All Settings | Options | Environment.
Click to check the box next to Fonts and Colors
Click Next and save your file
Restart IDE
I use a custom color scheme in Visual Studio (black background, gray text, etc.). There a few settings that refuse to change, however. For example, when cursoring through the markup for an aspx page, the current tag defaults to black text, which doesn't work well on my black background. I've previously changed the appropriate setting to a "visible" color. In fact, to fix it, all I have to do is open the Options window, check and uncheck the Bold setting on Plain Text and hit OK, and now all my chosen settings are properly loaded. If I open a new session though, I have to go through these steps again. There are only a few settings where I notice this behavior (the Read-Only Region is another one), but it's annoying to have to do a dummy option change to get them to kick in. Has anyone seen this behavior before, and does anyone have a fix/workaround?
UPDATE: Found an interesting fix. I still don't know what the root cause is (probably some corruption as #sliderhouserules suggessts), but I've got a quicker way to fix it than using Tools | Options | Fonts and Colors. I simply exported my current color settings and created a macro to load them in:
Public Sub ImportColors()
DTE.ExecuteCommand("Tools.ImportandExportSettings", "-import:""C:\Documents and Settings\gregf\My Documents\Visual Studio 2008\Settings\FontsAnColors_Exported-2008-12-05.vssettings""")
End Sub
I then mapped that macro to a button on my toolbar. Now I have a one-click fix whenever my colors go awry. Not ideal, but much less painful now.
Sounds to me like you may have some corruption in your VS install or something (IE you need to reinstall VS). This doesn't sound like a bug, and you'd be fishing in the dark trying to repair your registry or whatever config files are involved in setting and storing these options for VS.