GenericMappingTools / 2020-unavco-course

Planning and material for the 2020 UNAVCO GMT for Geodesy course
34 stars 18 forks source link

Strengthen the info and reasons for recommending VSC #31

Closed PaulWessel closed 4 years ago

PaulWessel commented 4 years ago

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 usingcode . 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.

seisman commented 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.

image

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.

seisman commented 4 years ago

FYI, you can even open/preview PDF files with the vscode-pdf extension.

PaulWessel commented 4 years ago

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?