Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add scratch files in vscode 馃敟 #60377

Closed
siwalikm opened this issue Oct 9, 2018 · 2 comments
Closed

Ability to add scratch files in vscode 馃敟 #60377

siwalikm opened this issue Oct 9, 2018 · 2 comments

Comments

@siwalikm
Copy link

siwalikm commented Oct 9, 2018

Like intellij and most modern IDE does, scratch files are immensely helpful for any dev. project.

What?
Scratch files are just new files which you create while in a project but it is stored in some temp directory outside workspace, so it doesn't come up in git diff.

Why?
Almost all the time while working on something, we create a new file to try out some idea or write down a snippet. Not necessarily this file is a part of the current workplace but this is something we need to keep open or reference. So only option is to mark this file as unchanged or stash and re-apply every single time after a commit.

How?
While creating a new file, it can by default be a scratch file always, from some temporary directory. Only on trying to save it, we might ask the user to chose folder or path.

@egamma
Copy link
Member

egamma commented Oct 10, 2018

Given the VS Code supports hot exit (dirty files are saved for you) this is already supported. Just create an untitled file and you do not even get prompted on exit. Please give this a try, this is how I work with scratch files all the time.

@egamma egamma closed this as completed Oct 10, 2018
@siwalikm
Copy link
Author

Woah! I never noticed that! Thanks for sharing the tip, and yes, it solves my problem. :)

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants