I’ve installed the BuildParts plugin that lets me execute highlighted lines code only, however each execution is “separate”.
Lets say I have two lines of code:
myVar = (2 + 2)
I would like to select the top line, execute the code (initialize the variable myVar with the result of 2+2), and then execute the next line (with the result). The problem is that for each time I execute, it doesn’t care about what I initialized in the previous execution.
I was wonder if there was some way to prevent it from “resetting” all variables for each time I executed? Like working in a continuous session. I like this way of working as I find it easier to play around with and test chunks of code in a larger script (step by step). Is there some way to achieve this in Sublime?