Skip to content

Windows: .gitattributes and .gitignore should always show extension #10694

Closed

Description

Dragon (@DarkNami) says

VSCode Version: 1.4.0
OS Version: Win7 x64

After installing Visual Code, I don't know which file is .gitattributes, and which file is .gitignore ...
filename

although I added 'AlwaysShowExt' in filetype, but not working...
regedit

Activity

  1. added
    bug
    on Aug 19, 2016
  2. added
    invalid
    and removed
    bug
    on Aug 19, 2016
  3. DarkNami commented on Aug 19, 2016

    @DarkNami

    If any user checked "Register Code as an editor supported file types", and Git config filename (.gitattributes, .gitconfig, .gitignore) is hidden. (File extensions of known file types are hidden)

    You can create an empty string value here named "AlwaysShowExt" in subkey:
    2016-8-19 19-07-21

    then you can see Git config filename again.
    2016-8-19 19-10-27

  4. joaomoreno commented on Aug 19, 2016

    @joaomoreno
    ContributorAuthor

    Wait, so it's not fixed. It's only fixed in your machine because you added that registry key?

  5. DarkNami commented on Aug 19, 2016

    @DarkNami

    Windows 7 default hide extensions for known file types.

    Before install VSCode, Windows don't know .gitattributes, .gitconfig and .gitignore.
    So we can see the full filename.

    After installed VSCode with "Register Code as an editor supported file types" option,
    Git config files become "known file types" (registed by VSCode).
    So Windows 7 hide extensions (.gitattributes) for known file types, the filename become empty in Windows Explorer.

    This situation will happen on all linux hidden file (filename start with dot).

  6. added
    bug
    and removed
    invalid
    on Sep 28, 2016
  7. locked and limited conversation to collaborators on Nov 18, 2017
  8. added a commit that references this issue on Sep 6, 2026
    36c1090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions