Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

Problem with my Workspace

I have a problem with my Workspace, it's not recognizing some of my methods, for example: if some mark by a color it means it has a meaning right? but when i type " Console." it stay black, when i see in the teacher video it turn blue or some other color it means it's ok, most of them can't be recognized even tho i double checked that i type currectly. and it cause that the mono can't recognize what i am typing so the program won't work. if someone have any clue and could help i will much appreciate it.

Best regards.

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey there.

Different colors for different things is called "Syntax Highlighting" and is different with every editor, and can even be customized and changed within the editor to the programmer's personal preference. Being black text (or any other color) doesn't necessarily means it's wrong. I don't use Workspaces, and I like a darker work area, so my display is inverted and often my Syntax Highlighting is very different than that of the teacher's.

As long as the code is correctly inputted and is syntactically correct, the program will run regardless of the colors. You can't modify the highlighting settings in Treehouse's Workspaces. So, I wouldn't worry too much about colors matching the teacher's all the time. Highlighting can be very helpful for you to debug, but often will be different in another person's editor.

Keep Coding! :smiley:

:dizzy:

Thank you for taking your time, so if something is not colored it doesnt mean that it won't work right? And yes I prefer to use visual studio

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Correct. Depending on your Highlight settings, some have more coloring than others. So, uncolored text is okay. If you're using Visual Studio try playing around with the Highlighting settings. There may be one that does highlight a better way. :)