You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create directory named typespec where you want to store the TextMate bundle
Move typespec.json into the directory named typespec
Rename typespec.json to typespec.tmLanguage
Open JetBrains IDE preferences, go to Text Mate
Click add (+) and select the typespec directory created in (2)
JetBrains IDE will now syntax highlight and given basic token autocomplete. A proper plugin would still provide more value and better auto-complete, but I do not know the effort to do that.
Edit: Alternative way to get typespec.tmLanguage. This replaces steps (1), (2), and (4).
The typespec.tmLanguage of your version of typespec exists in the @typespec/compiler package in your node_modules (at least at time of writing).
Activity
RodgeFu commentedon May 29, 2024
Thanks for submitting the request. Further investigation needed in this area.
connorjs commentedon Jun 24, 2024
Current workaround: Use TextMate bundle (example: IntelliJ’s documentation).
typespecwhere you want to store the TextMate bundletypespec.jsoninto the directory namedtypespectypespec.jsontotypespec.tmLanguage+) and select thetypespecdirectory created in (2)JetBrains IDE will now syntax highlight and given basic token autocomplete. A proper plugin would still provide more value and better auto-complete, but I do not know the effort to do that.
Edit: Alternative way to get
typespec.tmLanguage. This replaces steps (1), (2), and (4).The
typespec.tmLanguageof your version of typespec exists in the@typespec/compilerpackage in yournode_modules(at least at time of writing).Recxsmacx commentedon Sep 30, 2024
/assign
connorjs commentedon Apr 15, 2025
The OP mentioned the following.
Does TypeSpec have interest in officially maintaining a JetBrains plugin? Asking following the recent 1.0 rc (yay!).