Jump to content
  • Advertisement
Sign in to follow this  
Angelic Ice

Visual Studio's Lower- and Upper-Case Ignorance

This topic is 665 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello forum!

 

Quite a simple problem probably rather with Windows way its working than Visual Studio.

 

Is there any way to force Visual Studio to clean up its file name lookup? Let's say I had a file once named My_Class.h and now renamed the original file to my_class.h, Visual Studio will still show it as My_Class.h and also push that exact file name to my Git.

But I want it to push my_class.h to Git and also show that name in the solution explorer.

 

Thanks for taking your time to read my thread : ) Hopefully somebody can help me out as this is a life threatening issue, haha.

Edited by Angelic Ice

Share this post


Link to post
Share on other sites
Advertisement

Windows (and thus most Windows software) ignores case when it comes to file paths, so you cannot change ONLY case.

Just rename it to anything.h and then back to my_class.h

Share this post


Link to post
Share on other sites
You can also use powershell or command prompt:

PS> $null | out-file Test.a
PS> ls "test*" | select -expand Name
Test.a

PS> mv Test.a test.a
PS> ls "test*" | select -expand Name
test.a

Share this post


Link to post
Share on other sites

As I figured out for my VS solution generator tool, there are file names in your proj. file that were added to build process and also some that may be contained in a filters file that are shown "as if" they were in certain directory so you meay need to edit both files. I have had the same problem the other way when adding an upper case file to a solution and then commiting on SVN the other user downloading them had them in lower case (btw)

Share this post


Link to post
Share on other sites

I would try opening up the project in a text editor and changing the case there.

Thanks : ) Did not think of that solution, it was very quick and efficient.

 

I fixed this issue for the display in my Visual Studio explorer, but committing them to my Git via the Team Explorer still keeps them in upper case.

 

Are there any configuration files in my .git folder I can change in order to correct that?

Edited by Angelic Ice

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!