简体   繁体   English

React-native和VS码

[英]React-native and VS code

What do I have to do to see the information (property/method...) of a library in VS Code?我需要做什么才能在 VS Code 中查看库的信息(属性/方法...)?

(I'm using the framework: React-native, language: JavaScript) (我正在使用框架:React-native,语言:JavaScript)

Currently I can't see anything (see image below)目前我什么都看不到(见下图) 在此处输入图像描述

What I wanted (example image taken in Android Studio)我想要的(在 Android Studio 中拍摄的示例图像) 在此处输入图像描述

Thank You!谢谢你!

Windows : By holding ctrl and hovering to the <View /> you can see more info Windows :按住ctrl并悬停到<View />您可以查看更多信息

Mac : Hold CMD and hover to the <View /> Mac : 按住CMD和 hover 到<View />

Try installing this extension and restart your VS Code (For additional support),尝试安装此扩展并重新启动您的 VS Code(以获得更多支持),

在此处输入图像描述

If youre using a mac or macos,如果您使用的是 mac 或 macos,

just press CMD and hover over View tag or any other tag, youll see the details:)只需在查看标签或任何其他标签上按 CMD 和 hover,您将看到详细信息:)

You could install "ES7+ React/Redux/React-Native/JS snippets" in VSCode extension's menu or in the following link: ES7+ React/Redux/React-Native/JS snippets您可以在 VSCode 扩展的菜单或以下链接中安装“ES7+ React/Redux/React-Native/JS 片段”: ES7+ React/Redux/React-Native/JS 片段

after you install it, restart VSCode by pressing ctrl+shift+p , and type " Restart extension Host ", this will allow you to restart extensions without closing your project and/or the IDE.安装后,按ctrl+shift+p重新启动 VSCode,然后键入“ Restart extension Host ”,这将允许您在不关闭项目和/或 IDE 的情况下重新启动扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM