Evaluate selection in-place using safeEval in vscode.
- Evaluate and replace selection
- Evaluate selection in global context
Paste the lines in an empty editor then select them. The extension is dealing only with the selected lines, not the entire file.
- Run "Evaluate selection in global context" on the following lines.
a = 1
b = 2
c = "hello"
- Run "Evaluate and replace selection" on the following lines.
1+1
a*10+b
c+"world"
i
i
i
- You should get the following lines.
2
102
helloworld
3
4
5