Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VScode equivalent of Jetbrains/IntelliJ/Rubymine scratches (throwaway notes)

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.

like image 858
Peter Piper Avatar asked Jan 11 '19 13:01

Peter Piper


People also ask

How do I create a Vscode scratch file?

Run Command Palette Ctrl + Shift + P. Create new file command: Scratchpads: New scratchpad. Choose file type and enjoy scratch file.

Is JetBrains better than VS code?

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.

Where is scratch files in IntelliJ?

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.

What is command palette in VS code?

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.


1 Answers

During my research on the similar issue switching from PHPStorm to VSCode, I found your question and an answer to it here.

like image 88
mikemols Avatar answered Oct 05 '22 02:10

mikemols