3 ms·
> And who among us can say they never created a new class or project by copying an existing one, and then deleting everything inside? Why would I do that? Sure
by cassianoleal 5y ago
> And who among us can say they never created a new class or project by copying an existing one, and then deleting everything inside?
Why would I do that? Sure, I've copied classes and whole repositories around, then deleted most of the meat but the reason for copying instead of starting fresh is because a lot of the boilerplate and directory structure can be reused.
Deleting everything is a pointless exercise.
- catmanjan 5y agoI've done this in Visual Studio simply because the way to create a new blank code file is convoluted
- cassianoleal 5y agoI don't use Visual Studio but on VS Code it's pretty much the same as everywhere else: Either: * Cmd/Ctrl + N to open a new buffer, then Cmd/Ctrl + S to save it using th OS file picker; or * Right-click on the file browser pane on the directory to create the file, select New File and give it a name.
- mattowen_uk 5y agoI 100% forgot how I did it, but somewhere in the Visual Studio installation folders is one containing the empty project files for each type of project. I've replaced my blank 'Command Line' project template with one that already contains a lot of my favourite boilerplate code.