VSCode Tips & Tricks – Open Class per Name

In Studio you could open a class directly via it’s name, without having to traverse the package tree with multiple clicks until arriving at the desired class.

You would Ctrl + O or (File -> Open) and be able to simply type in the class name, for ex…


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

In Studio you could open a class directly via it's name, without having to traverse the package tree with multiple clicks until arriving at the desired class.

You would Ctrl + O or (File -> Open) and be able to simply type in the class name, for example:

Image description

You press Enter, and viola - the class is opened.

How do you achieve this in VSCode?

It's quite easy actually, you can simply press Ctrl + T (in Windows for example), or Go -> Go to Symbol in Workspace..., type in the class name and there you go.

For example:

Image description

This solution was mentioned by @dmitry.Maslennikov as a suggestion for the GitHub issue report (designated as an enhancement requestfor this kind of functionality - "Open Class by Name from Server".

Here's a short GIF demonstrating this:

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:59:33+00:00) VSCode Tips & Tricks – Open Class per Name. Retrieved from https://www.scien.cx/2024/07/16/vscode-tips-tricks-open-class-per-name/

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

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.