Hi peeps, I sometimes write small scripts that I s...
# suitescript
w
Hi peeps, I sometimes write small scripts that I save and run in Chrome using the snippets feature. This could be small pieces of code to run a query and then perform some updates on the results or testing out an algorithm. Now, for the second time, I've been logged out of chrome and my profile (including the snippets) was deleted. So I'm looking for an alternative place to store and run them, any tips?
c
I have a git repository with things like that in
w
So whenever you need to run something, you copy the code and then paste it in the console?
n
Scratches in Webstorm, easily accessible
w
@NElliott, can you execute them from there or do you copy them to the chrome console as well?
n
copy paste.
👍 1
I often have NS debugger code in there and functions hat don't really warrant putting in some library but handy to have at hand for reference. Sometimes I put redundant scripts there too.
w
I do have some scratches there too, but it's so convenient to just run them directly in chrome dev tools. I should probably store them in WS like you do.
n
The only thing to bear in mind is that they are on your local machine, if it gets wiped you lose them. I back mine up every once in a while 😉
I also back up my live templates, because they are super useful