From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Use Ctrl+Spacebar to fix case of variable names

Use Ctrl+Spacebar to fix case of variable names - Visual Studio Tutorial

From the course: Visual Studio Developer Tips

Use Ctrl+Spacebar to fix case of variable names

- [Instructor] IntelliSense is one of the most helpful features I can think of within Visual Studio. When you are writing code it gives you instant automatic context-aware Help. In this tip I'll look at how to apply the auto complete feature to fix incorrect variable names. I'm in a C sharp application and that means that variables are case sensitive. So, on line 19 I'm declaring a variable firstTour, with a capital T, for the word tour. And I'm using it on line 19 and 20. Changing letter T to a lowercase T. Visual Studio compiler can't find a match. So, it puts the red squiggle under those words. And I can fix this in several ways. One way to fix it is to hover my mouse over this look at the light bulb feature and then choose one of these fixes. The one we want is this last one, change firstTour to firsttour. That works, but I want to show you one of my favorite key strokes. I use this all the times in Visual Studio. It's control, space bar. That invokes the auto complete feature. So…

Contents