vscode-advanced-new-file icon indicating copy to clipboard operation
vscode-advanced-new-file copied to clipboard

Default path

Open davetorbeck opened this issue 6 years ago • 4 comments

Is it possible to default the path to the workspace root without having to select it every time?

davetorbeck avatar May 17 '18 00:05 davetorbeck

@DaveTorbeck sure, but that would make it much less convenient to create files in existing directories. Can you elaborate on your use case?

patbenatar avatar May 26 '18 15:05 patbenatar

I would like this to be a possibility as well. I'd like to enter the full path of the file instead of entering the directory first, and then the filename.

jmcbee avatar Jun 16 '18 06:06 jmcbee

@DaveTorbeck @jmcbee The reason we first show the directory picker is because VS Code extension API doesn't give us the ability to tab complete while you're typing an existing path into the new file path input. If we were to use a configuration option to bypass the directory picker, you'd have to manually type the path to your new file without any assistance from auto-completion. Just want to make sure that's understood before we add this. Let me know!

patbenatar avatar Jun 24 '18 16:06 patbenatar

I don't know about @DaveTorbeck but that is fine with me. Maybe we could make that clear with the naming of the configuration option.

jmcbee avatar Jun 24 '18 16:06 jmcbee