PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, November 21, 2022

[FIXED] How do I set different colors for local and global variables in Visual Studio?

 November 21, 2022     themes, visual-studio, visual-studio-2017     No comments   

Issue

I've been using monodevelop for a while and was using the 'Monokai' theme. Its coloring was very detailed. As you can see in the screenshot the local and global variables have different colors. Monodevelop colors

Recently I've started using Visual Studio 2017 and can't seem to find a theme that uses different colors for local and global vars.

Visual Studio colors

I've tried going to Tools->Options->Environment->Fonts and colors and couldn't find any setting to individually adjust the text colors of locals and globals. Even though I name these differently, the coloring makes debugging and code reading a bit more easier.

Does anyone know a way to give unique colors to local and global variables?


Solution

I do not believe there is a way to do this within Visual Studio. There may be a 3rd party add-on/extension that may do this.

UPDATE:
Visual Studio 2019, via a software update, recently changed the granularity in which variables can be color 'coded'. Please see Alex's response below for the now correct answer.



Answered By - EL MOJO
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing