From the course: Visual Basic Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Tips to make literals pop in the editor

Tips to make literals pop in the editor - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Start my 1-month free trial

Tips to make literals pop in the editor

- I've got another tip for you, it'll help you learn about identifiers and literals. First, let's review what we know. On line six, I'm declaring this variable with the four parts. Dim for declaration, counter as the identifier. Here's another identifier and so on. The data type and then the initializer. And for the initializer I'm using a literal. In this case it's an integer literal, this is a double literal. So the tip is that you can change the default color of the literal and of the identifier from the black text to another color. It can help you see where they live in the code. Let's do that by going to Tools, Options, go to Environment, Fonts and Colors. And here's the literal and here's the identifier. So, I'll start by changing the literal. I'll go here, I'll go to change the background to yellow. I'll dial in a lighter color of yellow like that, and then click on OK. And everywhere there's a literal value in…

Contents