WHAT'S NEW?
Loading...

How to create a file with a . dot prefix in Windows Explorer

If you right click in Windows and try to make a new text file with a . period/dot in front of it:

image

Name the file...something like .gitignore, for example.

image

You"ll get the "You must type a file name" error.

image

But, rather than typing .gitignore, if you include an ending dot also, like

.gitignore.

Then it works fine.

image

Thanks, Mads, for the tip!

NOTE: We"re assuming that you have "File name extensions" turned on, because if you don"t, you"re likely not a programmer. ;)

image

UPDATED: Mads has created an "Add Empty File" Extension for VS that makes it easy to create . files as well!


SOURCE: http://www.hanselman.com/blog/HowToCreateAFileWithADotPrefixInWindowsExplorer.aspx

0 comments:

Post a Comment