albertintech / Java-I

Repo created for a Java I course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java I

Repo created for a Java I course

A lesson learned about file stucture appearance in VSCode and on GitHub:

If you have nested folders in your project, VSCode and GitHub will will display them "in-line" like so:

  • πŸ“ folder1/nested_folder

I would prefer to see this:

  • πŸ“ folder
    • πŸ“ nested_folder
      • πŸ“ another_nested_folder

This is not really a big deal, unless you have a list of folders with only one sticking out like a sore thumb:

  • πŸ“ folder1
  • πŸ“ folder2
  • πŸ“ folder3/nested_folder
  • πŸ“ folder4
  • πŸ“ folder5

Grrrr! Houston, we have a problem!

After much gnashing of persnickety teeth, the answer is simple: make sure the nested folder is not the only object in the root folder!

Taking the above example, we can just add an "invisible" empty .gitkeep file, or any other type of file or another folder, to correct the abberation:

  • πŸ“ folder3
    • πŸ“„ .gitkeep
    • πŸ“ nested_folder

Now your folders will look nice and tidy from the repository level:

  • πŸ“ folder1
  • πŸ“ folder2
  • πŸ“ folder3
  • πŸ“ folder4
  • πŸ“ folder5

Hope this helps! Bye for now! πŸ‘‹πŸΌ

About

Repo created for a Java I course


Languages

Language:Java 100.0%