I recently switched from Jetbrains Rubymine/Webstorm to VSCode.
One feature that I miss a lot is scratches.
Scratch files are fully functional, runnable, and debuggable files, which support syntax highlighting, code completion, and all other features for the corresponding file type. For example, while working on one project, you may come up with an idea for a method that you could later use in another project. You can create a scratch file with a draft of the method, which is not stored in your project directory but can be accessed and opened from another project. You can use scratch files to draft Java code constructs, HTTP requests, JSON documents, and so on.
Is there anything similar in VSCode? I did some research but without success.
Run Command Palette Ctrl + Shift + P. Create new file command: Scratchpads: New scratchpad. Choose file type and enjoy scratch file.
Both IDE environments provide a very solid debugging environment but, I must say that JetBrains edges out VS Code again here by just a little bit.
By default, IntelliJ IDEA stores scratch files and buffers in the IDE configuration directory under scratches. They are available from any IDE and project that uses this configuration directory. To change the location of the Scratches and Consoles directory, use the idea. scratch.
The Command Palette provides access to many commands. You can execute editor commands, open files, search for symbols, and see a quick outline of a file, all using the same interactive window. Here are a few tips: Ctrl+P will let you navigate to any file or symbol by typing its name.
During my research on the similar issue switching from PHPStorm to VSCode, I found your question and an answer to it here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With