2

When viewing TypeScript files in PhpStorm, constants have inlay hints like so:

inlay hints for constants in PhpStorm

The inlay hint in the screenshot above is Ref<boolean, boolean> and it is automatically displayed by PhpStorm.

Is it possible to get the same type of inlay hints for constants in a .vue file?

<template>
    <div>test</div>
</template>

<script setup lang="ts">
import { ref } from "vue";

const name = ref("name"); // an inlay hint should be visible after "const name"
</script>
2
  • Unfortunately, I don't think this is supported.... Commented Apr 10 at 10:40
  • Check this article: devgem.io/posts/… Commented Apr 10 at 17:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.