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#

Im haveing trouble with my work space?

I usually user Visual Studio but i want to keep my personal projects separet from my suty projects so im useing workspace here. Im working on the C# course just started. Anyway my question is that why wont my workspace color code the code as i write it the way is was described in the video? and how can I fix it? because I deleted the folers that where premade for me and created my own folders to be very organized and now when I write my class and my method is all stays one color no like when I first open the Workspace witch everything was color coded.

1 Answer

Oziel Perez
Oziel Perez
61,321 Points

You have to save the file first as a .cs file. The workspace doesn't know what file it is until you save it as a .cs file. Same goes for all code files, except .txt files.

Thanks Oziel that worked!!