Bahasa Inggris | 简体中文
Plugin ini dapat menyediakan fungsi prompt cerdas yang sangat kuat, termasuk properti, peristiwa, slot, serta anotasi dan tipe terkait, metode pada instance, dll. Plugin ini mendukung banyak pustaka UI, sehingga meningkatkan efisiensi pengembangan Anda ke tingkat berikutnya.
Instal pustaka komponen ui yang didukung di proyek Anda dan instal pluginnya. Jika plugin tidak berfungsi, Anda dapat memulai ulang vscode. Jika Anda menemui masalah, Anda dapat membuka masalah.
cmd+shift+p
-> Pilih 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 "
}
}
Repositori ini dikelola oleh individu, dan perlu sering diperbarui dengan beberapa perpustakaan UI. Jika Anda tertarik untuk berkontribusi, Anda dapat mengirimkan PR ke versi perpustakaan UI yang sesuai di bawah @common-intellisense atau menyediakan beberapa perpustakaan UI baru atau beberapa fitur baru. Kiriman dipersilakan. masalah
Jika proyek Anda adalah perpustakaan pribadi, Anda juga dapat merujuk ke vuetify, memberikan uri yang diekspor, jika uri Anda adalah alamat dist/index.cjs
paket yang dapat diakses, di vscode common-intellisense.remoteUris
, konfigurasikan tautan ini, plugin akan meminta tautan ini dan mendapatkan informasi cepat yang sesuai. Anda juga dapat langsung mengonfigurasi nama paket npm (@xx/yy-ui), mengonfigurasinya di common-intellisense.remoteNpmUris
, sehingga plugin akan meminta dist/index.cjs
yang dihasilkan oleh paket npm dan mendapatkan yang sesuai informasi yang cepat. Video bilibili
{
"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
, lalu hapus versi rendah simonhe.common-intellisense-low-version
, dan mulai ulang vscode.fnm
atau nvm
atau alat pembuatan versi node
lainnya, dan jika Anda mengalami masalah seperti unduhan yang tidak normal atau masalah dengan unduhan, periksa apakah variabel lingkungan sistem sudah disetel.fnm
, tambahkan variabel lingkungan %USERPROFILE%AppDataRoamingfnmaliasesdefault
. Mensponsori Intellisense Umum
MIT