Scratches and Version Control?
已回答
I have created series of trivial one file JavaScript apps using the Scrathes mechanism. I want to version control them without all the hoopla of setting a project per file. Really these are trivial bits of code. (Pull all my completed backlog items from KanbanZone; Pull Planned items from the Upcoming week from KanbanZone).
Is there an elegant way to version control? If not, what is the normal JavaScript approach for tiny applets like this? Do people really go and create a full project for each file?
请先登录再写评论。
Unfortunately, tracking scratch files under version control is currently not supported. There is a feature request for it on our issue tracker: https://youtrack.jetbrains.com/issue/IDEABKL-7607. However, it's pretty old and doesn't have a lot of votes.
In the end I asked Claude Sonnet and it recommended I use a monorepo with each JavaScript file/program in it's own folder. Ideally Scratches would get version control, practically speaking I'm not going to stress.