I've done this in Visual Studio simply because the way to create a new blank code file is convoluted
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.