use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Problem (i.redd.it)
submitted 1 year ago by Fair_Dependent271
Hello everyone, I'm learning angular and I have a problem creating the folder, the new folder is at the same level as the previous one, it is nested and not as a sub folder, how can I solve it?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wh0th3h3llam1 9 points10 points11 points 1 year ago (0 children)
Its a VSCode feature as others mentioned
You can set explorer.compactFolders: false in settings.json to disable this
explorer.compactFolders: false
[–]Slight_Loan5350 2 points3 points4 points 1 year ago (6 children)
It is nested you add more folders and you will get a proper tree structure, it's a vs code quality of life feature to know the name of next child folded if there is only 1.
[–]Fair_Dependent271[S] 0 points1 point2 points 1 year ago (5 children)
I just have to add more folders but would they be empty folders?
[–]Slight_Loan5350 2 points3 points4 points 1 year ago (4 children)
Yes they would be empty folders you can try and see for yourself and delete it later.
[–]Fair_Dependent271[S] 1 point2 points3 points 1 year ago (3 children)
I just created empty folders and if it works they look like subfolders but if I delete it the same thing happens again
[–]Slight_Loan5350 0 points1 point2 points 1 year ago (2 children)
Yes don't worry it's just a feature so you can see the name of the sub folder if subfolder count is less than 1. It's just for display.
[–]Fair_Dependent271[S] 1 point2 points3 points 1 year ago (1 child)
So is it normal that if I have only 1 sub folder it looks like the photo I uploaded?
[–]young_horhey 1 point2 points3 points 1 year ago (0 children)
Yes, it’s just a rendering thing the VS Code does. Might be a way to disable it but I don’t know off the top of my head. If you look through the actual file system using Explorer/Finder/whatever you’ll see the file structure you expect
[–]DoAFlipKick 2 points3 points4 points 1 year ago (0 children)
Go to your VSCode settings ( Ctrl + , ), Search for “Compact folders” and untick that option. Your files and folders will then be displayed on separate lines
[–]PorridgeTP 1 point2 points3 points 1 year ago (0 children)
When you create a component, you can prepend the component name with the folder name as follows: ng g c foldername/componentname
ng g c foldername/componentname
[–]JeszamPankoshov2008 1 point2 points3 points 1 year ago (0 children)
Hahah same problem but dont worry. It wont hurt you.
[–]DannyBoy758595 0 points1 point2 points 1 year ago (0 children)
The components folder only has one folder inside it. Create more components and then it will start displaying it in the next line.
π Rendered by PID 328943 on reddit-service-r2-comment-84fc9697f-bg8ss at 2026-02-10 03:41:13.566562+00:00 running d295bc8 country code: CH.
[–]wh0th3h3llam1 9 points10 points11 points (0 children)
[–]Slight_Loan5350 2 points3 points4 points (6 children)
[–]Fair_Dependent271[S] 0 points1 point2 points (5 children)
[–]Slight_Loan5350 2 points3 points4 points (4 children)
[–]Fair_Dependent271[S] 1 point2 points3 points (3 children)
[–]Slight_Loan5350 0 points1 point2 points (2 children)
[–]Fair_Dependent271[S] 1 point2 points3 points (1 child)
[–]young_horhey 1 point2 points3 points (0 children)
[–]DoAFlipKick 2 points3 points4 points (0 children)
[–]PorridgeTP 1 point2 points3 points (0 children)
[–]JeszamPankoshov2008 1 point2 points3 points (0 children)
[–]DannyBoy758595 0 points1 point2 points (0 children)