Partial classes | Interface/Implementation |
---|---|
I know, I know it's been a while since I wrote. This one is worth reading!
Press
CMD+,
(orCTRL+,
for the poor 😎) to open VSCODE settings window.Type nesting in the search bar at the top, then find
Explorer > File Nesting: Patterns
tab as shown in the picture.
- Add those two items at the end that is highlighted in the picture.
Now 2 things happen:
1) you partial classes nest under main class.
2) you implementations nest under interfaces if they are in the same folder.
Partial classes
Interfaces
© Ilmhub
Top comments (3)
Thank you
That's awesome 🤩🤩
Nice! Out of interest, can you explain the *.csproj nesting configuration you have in the screenshot? What's that one doing? Ta