common intellisense
v0.2.72
英语 | 简体中文
该插件可以提供超强大的智能提示功能,包括属性、事件、槽位以及相应的注解和类型、实例上的方法等。它支持多种UI库,让您的开发效率更上一层楼。
在项目中安装支持的ui组件库并安装插件。如果插件不起作用,可以重启vscode。如果遇到问题,您可以提出问题。
cmd+shift+p
-> 选择Specify the UI library you need to prompt
{
"common-intellisense.showSlots" : {
"type" : " boolean " ,
"default" : true ,
"description" : " Whether to show the slots on template completion. "
},
"common-intellisense.alias" : {
"type" : " object " ,
"default" : {},
"description" : " If you need to integrate the supported ui library, the secondary encapsulated library, and the prompt to integrate a certain version of the original ui, you can use the alias { " @xxx/element " : " elementUi2 " } "
},
"common-intellisense.remoteUris" : {
"type" : " array " ,
"default" : [],
"description" : " Remote URIs "
},
"common-intellisense.remoteNpmUris" : {
"type" : " array " ,
"default" : [],
"description" : " Remote NPM URIs "
},
"common-intellisense.localUris" : {
"type" : " array " ,
"default" : [],
"description" : " Local URIs "
}
}
该存储库由个人维护,需要经常更新一些 UI 库。如果您有兴趣贡献,可以在@common-intellisense下向相应版本的相应UI库提交PR或者提供一些新的UI库或者一些新功能。欢迎提交。问题
如果你的项目是私有库,也可以参考 vuetify,提供一个导出的 uri,如果你的 uri 是可访问的打包后的dist/index.cjs
地址,在 vscode 中common-intellisense.remoteUris
,配置这个链接,插件会请求该链接并获取相应的提示信息。也可以直接配置一个 npm 包名(@xx/yy-ui),配置在common-intellisense.remoteNpmUris
中,这样插件就会请求 npm 包产生的dist/index.cjs
并获取对应的提示信息。哔哩哔哩视频
{
"name" : " componentName like Button.Group or VButton(Big CamelCase Format) " ,
"props" : {
"attributeName" : {
"default" : " defaultValue " ,
"value" : " if have will generate attribute with= " value " " ,
"type" : " if you use -> boolean / top / end / bottom / start will have option when create attribute " ,
"description" : " en description " ,
"description_zh" : " zh description " ,
"required" : true , // if with true when select component will auto has this attribute
"foreach" : false , // it only work with vue, when you want generate with v-for
"version" : " Hints are available only in a specified version "
}
},
"link" : " en link to document " ,
"link_zh" : " zh link to document " ,
"typeDetail" : { // Used to supplement other types of descriptions in the attribute dependencies
"AnchorItem" : [ // if name startsWith '$' like "$AnchorItem", will be type AnchorItem = 'x' | 'y'
{
"name" : " key " ,
"description" : " Unique ID " ,
"type" : " string | number "
}
]
},
"events" : [
{
"name" : " close " ,
"description" : " Emitted when close icon is clicked. " ,
"description_zh" : "单击关闭图标时发出。 " ,
"params" : " [MouseEvent] " ,
"version" : " Hints are available only in a specified version "
}
],
"exposed" : [ // when use ref get vm, vm.value or vm.current will get this hints
{
"name" : " [string] " ,
"description" : " MISSING DESCRIPTION (edit in github) " ,
"description_zh" : " MISSING DESCRIPTION (edit in github) " ,
"detail" : " any "
}
],
"suggestions" : [ // Some components are combined,when use button-group, inner tip will this `button` reminder will be brought forward, if this components with only one suggestions, it will select button-group auto create button
" v-alert-title "
]
}
code ~/.vscode/extensions
,然后删除低版本simonhe.common-intellisense-low-version
,然后重启vscode。fnm
或nvm
等node
版本控制工具,如果遇到下载异常或下载出现问题等问题,请检查系统环境变量是否设置。fnm
,请添加%USERPROFILE%AppDataRoamingfnmaliasesdefault
环境变量。 赞助 Common Intellisense
麻省理工学院