JannisX11 / snowstorm

Minecraft Bedrock Particle Generator
https://snowstorm.app
GNU General Public License v3.0
150 stars 25 forks source link

Using Snowstorm as Particle Preview #75

Closed Nusiq closed 5 months ago

Nusiq commented 5 months ago

Snowstorm is a great tool that I use to preview the particles, however I prefer to write them as code. I usually have a spit screen with code on the one side and Snowstorm on the other side. A shortcut that lets hide Snowstorm's sidebar would greatly improve my workflow by making the preview bigger and removing the part of the screen that I don't use anyway.

An additional config option to make the .particle.json files open in code editor by default would also be very helpful for people, whose primary interaction with these files is in the code editor.

EDIT: I found an option in VS Code that lets you change the default editor.

"workbench.editorAssociations": {
    "*.particle.json": "default" // Overwrite x11.snowstorm
},

You can still open Snowstorm editor by using CTRL+P -> >View: Toggle Editor Type option while having *.particle.json file open. So adding this feature to Snowstrom configuration would be redundant.

Addition of these features would enable following workflow:

  1. Open particle file as code to edit something
  2. Press some kind of shortcut to open preview (ideally with the sidebar closed)
  3. Switch to code if you decide to apply some changes based on the results in the preview.