Closed PaulWessel closed 4 years ago
Do you know that vscode can even open images (png, jpeg, but not PDF) in the editor.
This is what I usually have: a split editor+terminal+preview layout.
After running the script the first time, you can open the image in the editor, and drag it to the right panel. You can modify the script, click the "run" button, then the image is automatically reload and refreshed. I usually find it more convenient and faster than gmt end show, which calls external viewers.
I'm not sure if image refreshing works on Windows, because Windows may have a lock on opened files.
FYI, you can even open/preview PDF files with the vscode-pdf extension.
OK, sorry probably should have added to this one. Gotta eat dinner now. May you could add some more points to the list along those lines?
So I got more excited today about VSC since I found I could speed up mundane tasks like chmod +x my script or run the script in the VSC terminal via shortcuts or extensions. I also tested this for Windows for WSL users (e.g. ubuntu) and if you install the Windows version then you can open your working directory in VSC via the bash terminal using
code .
I think we want command line users to have as smooth an experience as possible, hence I plan to email the students to revisit this issue if they stuck with there regular editor.