Hacker News new | past | comments | ask | show | jobs | submit login

I've done this in Visual Studio simply because the way to create a new blank code file is convoluted



I 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.


I 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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: