vscode-jupyter-python
vscode-jupyter-python copied to clipboard
create a new line after execute the last line (#6)
The code I provided in (#6) is a fix after installing the extension, users can modify run-code.js in .vscode to solve the problem.
I considered four cases
- The last code block is a single line
- The last code block is multi-line
- The last code block is a single line and there are several blank lines below it
- The last code block is multi-line and there are several blank lines below Case 1 2: Insert a blank row at the last row and move the pointer there Case 3 4: Move the pointer to the first blank line under the code block
I modified the run-code.ts in the source code and compiled it into a vsix package for testing. No problems have been found in my test. Please compile and test it. I also provide a vsix package that I compiled. unzip_this.zip