---
title: "Discussion on \"VSCode: How to infer function return types in Typescript\" | Hashnode"
description: "Discussion on \"VSCode: How to infer function return types in Typescript\". TL;DR\n\nYou don't need an extension.\nYou don't need a plugin.\nYou don't need a library.\n\nIt's a built-in feature!\nJust press Cmd + . or Ctrl + . when your cursor is placed just before the opening paranthesis of function arguments.\nfunction foo(a: stri..."
url: "https://hashnode.com/posts/vscode-how-to-infer-function-return-types-in-typescript/610c0119528eff11aea85d28"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [VSCode: How to infer function return types in Typescript](https://anilanar.hashnode.dev/vscode-how-to-infer-function-return-types-in-typescript?utm_source=hashnode&utm_medium=feed)

TL;DR You don't need an extension. You don't need a plugin. You don't need a library. It's a built-in feature! Just press Cmd + . or Ctrl + . when your cursor is placed just before the opening paranthesis of function arguments. function foo(a: stri...

Aug 5, 2021 · 1 min read · anilanar.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#vscode](https://hashnode.com/tag/vscode)

## Written by

[Anıl Anar](https://hashnode.com/@anilanar)

@anilanar

  
[View profile](https://hashnode.com/@anilanar)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
