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
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
和RESTART VSCODE。fnm
或nvm
或其他node
版本控制工具,並且您遇到了諸如下載異常或下載問題之類的問題,請檢查系統環境變量是否設置了。fnm
,請添加%USERPROFILE%AppDataRoamingfnmaliasesdefault
環境變量。 贊助商普通智能
麻省理工學院