VSCode Tips & Tricks – Web Terminal

How would you like to be able to access the Web Terminal directly from your VSCode?

This is another entry in the VSCode Tips & Tricks – and it is quite similar to the previous one about the SOAP Wizard.

Same principal, and same result, though d…


This content originally appeared on DEV Community and was authored by InterSystems Developer

How would you like to be able to access the Web Terminal directly from your VSCode?

Image description

This is another entry in the VSCode Tips & Tricks - and it is quite similar to the previous one about the SOAP Wizard.

Same principal, and same result, though different use-case.

So assume you want to open the Web Terminal (and for those of you who are still not familiar with this excellent tool by the amazing @nikita.Savchenko7047 check out it's home page) from VSCode - you can take a similar approach to the one I described in the previous article.

I'll outline the steps again -

  • Open the ObjectScript Extension JSON Settings
  • In the 'conn' object add a 'links' object
  • Inside 'links' add this line

            "$(terminal) WebTerminal": "${serverUrl}/terminal/?ns=${ns}${serverAuth}"

 

It will look like this -

Image description

Once you do this, when you click on the Connection in the bottom Status Bar of VSCode you should find Web Terminal in the menu.

This is mentioned in this VSCode ObjectScript's GitHub Issues discussion (about the ${...} variables used in the URL above), by @john.Murray 


Here's a short GIF demonstrating this process (starting off with the standard menu, and finishing with the option to launch the Web Terminal) -

Image description

 


This content originally appeared on DEV Community and was authored by InterSystems Developer


Print Share Comment Cite Upload Translate Updates
APA

InterSystems Developer | Sciencx (2024-07-16T17:57:26+00:00) VSCode Tips & Tricks – Web Terminal. Retrieved from https://www.scien.cx/2024/07/16/vscode-tips-tricks-web-terminal/

MLA
" » VSCode Tips & Tricks – Web Terminal." InterSystems Developer | Sciencx - Tuesday July 16, 2024, https://www.scien.cx/2024/07/16/vscode-tips-tricks-web-terminal/
HARVARD
InterSystems Developer | Sciencx Tuesday July 16, 2024 » VSCode Tips & Tricks – Web Terminal., viewed ,<https://www.scien.cx/2024/07/16/vscode-tips-tricks-web-terminal/>
VANCOUVER
InterSystems Developer | Sciencx - » VSCode Tips & Tricks – Web Terminal. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/16/vscode-tips-tricks-web-terminal/
CHICAGO
" » VSCode Tips & Tricks – Web Terminal." InterSystems Developer | Sciencx - Accessed . https://www.scien.cx/2024/07/16/vscode-tips-tricks-web-terminal/
IEEE
" » VSCode Tips & Tricks – Web Terminal." InterSystems Developer | Sciencx [Online]. Available: https://www.scien.cx/2024/07/16/vscode-tips-tricks-web-terminal/. [Accessed: ]
rf:citation
» VSCode Tips & Tricks – Web Terminal | InterSystems Developer | Sciencx | https://www.scien.cx/2024/07/16/vscode-tips-tricks-web-terminal/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.