orta/vscode-twoslash-queries
소개
TypeScript 프로젝트에서 twoslash 쿼리를 지원하는 VS Code 확장 프로그램입니다.
개발 도구What you can do
- End a line with //=> to highlight the leftmost named type.
- Use the "TwoSlash Query: Insert Below" command from the Command Palette or assign a keyboard shortcut to it (default: Ctrl+K 6 on Windows, Cmd+K 6 on Mac).
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalvscode-twoslash-queries
A tiny extension for VS Code that lets you use // ^? inside your editor to inline highlight types. Re-uses the existing TypeScript tooling infra in *.ts, *.tsx, *.js, and *.jsx files, simply adding inline info.
The extension works with both the classic TypeScript language service and the TypeScript 7 language server.
Useful for keyboard warriors or folks working on complex types and want to see how changes propagate throughout other types.
Features
Key: You write // ^? anywhere in a source file (with whitespace before, between and middle being whatever) all that matters is the alignment of the ^.
In addition:
- End a line with
//=>to highlight the leftmost named type. - Use the
"TwoSlash Query: Insert Below"command from the Command Palette or assign a keyboard shortcut to it (default:Ctrl+K 6on Windows,Cmd+K 6on Mac).
You can see here it in use a few times:

Debugging
Ensure that inlay hints are enabled editor.inlayHints.enabled in your VS Code settings.
If the inlay hints are truncated, you may need to increase the inlay hints maximum length editor.inlayHints.maximumLength. This overrides the maxLength of this plugin orta.vscode-twoslash-queries.maxLength (default 120).
This would look like:
{
"editor.inlayHints.enabled": true,
"editor.inlayHints.maximumLength": 120,
"orta.vscode-twoslash-queries.maxLength": 120
}
Deployment
Bump version number.
VS Code:
npx vsce publish
OSVX:
npx vsce packageovsx publish vscode-twoslash-queries-*.vsix -p [token]rm vscode-twoslash-queries-*.vsix
관련 프로젝트 살펴보기
불러오는 중…