none
How to color for 'cout' and 'cin'?

    Question

  • It's all in the title, I wanna know how to change the color for cout and cin, I clicked nearly every display item, couldn't figure it out. Maybe you cant, I don't know but if anyone does know, let me know, you know.
    Monday, August 08, 2016 10:26 AM

Answers

  • Hi LeonMoore,

    Which version of Visual Studio do you use? In Visual Studio, if you want to change the color for some key words, please open the Tools menu -> Options -> Environment -> Fonts and Colors. Then you can choose the key words type and set its foreground and background. For the 'cout' and 'cin', please choose the "C++ Variables" in the Display items list and set the foreground as you expected.

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, August 09, 2016 2:51 AM
    Moderator