Skip to content

Git: Manage the ignore file #23797

Closed
Closed

Description

@hbarr

Git integration is good in vscode but one thing is missing, ignore.

I am running Vscode 1.10.2 on MacOS Sierra 10.12.4.

Working on a project, I noticed the Git integration had discovered that .DS_Store had changed and was listed with my edited files.

I wanted to tell Git to ignore this file, but found that this option was not among the integrated git commands. It really should be available. All that is involved is adding a line to the project .gitignore file.

I then tried to edit the .gitignore file in Vscode, but I found I could not easily open the file.
On MacOS it is standard practice to hide system files, including those with names that begin with "."
Vscode uses the standard Mac open file dialog, which, of course, will not let me see the .gitignore file.

I looked for a way to specify the file path directly, without using the dialog, and could not do so.

Please, as well as git ignore, could you add the ability to open a file using its explicit path.

I was unable to find either of these addressed in Vscode docs or open issues.

Activity

  1. changed the title [-]Git ignore and Mac system files (.*)[/-] [+]Git: Manage the ignore file[/+] on Apr 6, 2017
  2. added
    good first issue
    git
    help wanted
    feature-request
    on Apr 6, 2017
  3. jsynowiec commented on Apr 6, 2017

    @jsynowiec
    Contributor

    Harry Barrow (@hbarr) to open and edit hidden files you can try one of the following:

    1. Open the folder containing such files using the same dialog you mentioned. .gitignore and other files prefixed with a dot will be visible (and selectable) in the Explorer panel.
    2. Start vscode using terminal supplying the filename or directory, e.g. code .gitignore

    Also, a duplicate of #23681

  4. timbanaveen commented on Apr 22, 2017

    @timbanaveen

    Hi João Moreno (@joaomoreno) ,

    I would like take up this task, i saw code related to SCM menu and its handling. I think scmMenus.ts file handles everything related to menus in SCM part of editor. But i am not able to find when MenuItems are registered with there respective ids, as it is being returned from MenuRegistry.

    Please Help.

  5. joaomoreno commented on Apr 24, 2017

    @joaomoreno
    Contributor

    Here's where all the menus are contributed. More information here.

  6. BuraChuhadar commented on Jun 22, 2017

    @BuraChuhadar
    Contributor

    João Moreno (@joaomoreno) I updated #25718 and put comments underneath. Please see #29243 for the updated version.

  7. joaomoreno commented on Jun 26, 2017

    @joaomoreno
    Contributor
  8. added
    verification-needed
    on Jun 27, 2017
  9. jrieken commented on Jun 28, 2017

    @jrieken
    Contributor

    João Moreno (@joaomoreno) This command shows up in the global command palette but isn't doing anything.

  10. joaomoreno commented on Jun 28, 2017

    @joaomoreno
    Contributor
  11. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestgitgood first issuehelp wantedverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions