vscode-jupyter-python icon indicating copy to clipboard operation
vscode-jupyter-python copied to clipboard

create a new line after execute the last line (#6)

Open xclrr opened this issue 1 year ago • 0 comments

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

  1. The last code block is a single line
  2. The last code block is multi-line
  3. The last code block is a single line and there are several blank lines below it
  4. 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

xclrr avatar Mar 22 '23 15:03 xclrr