thoughtbot / factory_bot_rails

Factory Bot ♥ Rails
https://thoughtbot.com/services/ruby-on-rails
MIT License
3.06k stars 364 forks source link

Ignore Project IDX workspace customisations #473

Closed smaboshe closed 3 months ago

smaboshe commented 3 months ago

When using Google Project IDX, it sets up a local customisations folder (.idx). This commit ignores that folder.

This commit also sorts the Git ignore file to make it easier to scan.

Ref:

sarahraqueld commented 3 months ago

Have you considered adding the Google Project IDX files to your local .gitignore instead? This way, you don't need to include IDE-specific rules in each project's .gitignore file:

To always ignore a certain file or directory, add it to a file named ignore that's located inside the directory ~/.config/git.

smaboshe commented 3 months ago

Have you considered adding the Google Project IDX files to your local .gitignore instead? This way, you don't need to include IDE-specific rules in each project's .gitignore file:

To always ignore a certain file or directory, add it to a file named ignore that's located inside the directory ~/.config/git.

Good call!

Yes, I have added this to my local (laptop) setup. The addition here is so that IDX ignores it as well. I'll see if there is a way to add a global .gitignore to IDX. I think that will be cleaner.

smaboshe commented 3 months ago

I have managed to create a global . gitignore for the IDX environment.