Skip to content

Files

typespec-vs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 16, 2024
Feb 17, 2025
Jan 24, 2024
Feb 11, 2025
Feb 16, 2023
Feb 16, 2023
Feb 16, 2023
Jan 30, 2024
Feb 16, 2023
Feb 11, 2025
Jan 30, 2024
Feb 24, 2023

TypeSpec Language Support for Visual Studio

Repository | Documentation | Issues | Samples

This provides provides TypeSpec language support for Visual Studio.

Features

  • Live diagnostic reporting
  • Syntax highlighting
  • Code completion
  • Code folding
  • Formatting
  • Hover info
  • Rename refactoring
  • Go to definition

Configure TypeSpec Visual Studio Extension

  1. Create a file .vs/VSWorkspaceSettings.json at the root of the project.
  2. Add configuration as key value pair in this file. Example:
{
  "typespec.tsp-server.path": "${workspaceFolder}/my-nested-project/node_modules/@typespec/compiler"
}

TypeSpec wil interpolate a few variables using this pattern ${<name>}. For example ${workspaceFolder}.

Available variables:

  • workspaceFolder: Correspond to the root of your Visual Studio workspace.