4

教你如何在Windiws平台上创建以点(.)开头的文件名

 2 years ago
source link: https://blogread.cn/it/article/6902?f=hot1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
您现在的位置首页 --> 发现 --> 教你如何在Windiws平台上创建以点(.)开头的文件名

教你如何在Windiws平台上创建以点(.)开头的文件名

浏览:1020次  出处信息

   如果你在Windows桌面上点击右键,创建一个文件,并试图把这个文件命名为以点(.)开头的名称,就像下面这样:

   1

   比如,把它命名成 .gitignore

   image_4e5df34d-2dc8-4a42-acef-db2488188aba

   Windows会提示你文件名错误。

   2

   但是,如果你仅仅输入 .gitignore 这个名称,而且还将名称后再加一个点(.),像下面这样

   .gitignore.

   这样就没有任何错误提示,可以命名成功。

   image_7d980a38-41a8-4933-9589-e684b5cc94b1

   感谢Mads提供了这个技巧!

   注意: 上面的实例中我们的文件扩展名都是显示出来的,如果你不是程序员,你的电脑上可能是隐藏文件扩展名。;)

   3

觉得文章有用?立即:

和朋友一起 共学习 共进步!

QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK