vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Add "New Workspace File" action

Open okian opened this issue 10 years ago • 6 comments

Currently new file command (cmd+N) will specify an untitled chunk in memory which need to be saved immediately (cmd+S) if we want to use VSCode intellisense*. I think new file command should open a text input (not os file dialog) and ask for a path relative to current active file/directory to create the new file and after that active the editor. for example if i'm editing ./src/db/base.ts path ../config.json should create json file in ./src/config.json or path ./company/ford.ts create company directory and then add ford.ts into that so finally we will have ./src/db/company/ford.ts . It's make a huge difference especially because right now it's necessary to use mouse for saving file in different directory.

*Just changing Language Mode (cmd+K M) doesn't work because intellisense for modular systems need to know where file will be saved. for example in new untitled file import { person } from '../info' where is ../ directory? because of that VSCode is unable to deliver intellisense for person.

okian avatar Jan 09 '16 02:01 okian

What about when the user doesn't want to save the file? Part of my workflow is to use my text editor to take notes which I'll either save/delete/action later.

Tyriar avatar Jan 10 '16 12:01 Tyriar

@Tyriar I'm pretty sure the main purpose of this feature is not what you're referring to. However that can be good separate feature.

okian avatar Jan 10 '16 14:01 okian

I agree with @moostad. Let's transform this issue into a feature request. I think it's a good idea.

@bpasero fyi

joaomoreno avatar Jan 11 '16 08:01 joaomoreno

@moostad this sounds like a good example for an extension :)

bpasero avatar Jan 11 '16 10:01 bpasero

:+1:

joaomoreno avatar Jan 11 '16 10:01 joaomoreno

image

Seems to exist, closing.

bpasero avatar Jan 11 '16 10:01 bpasero