A,Package. json file contents

{
	// The name of the plug-in should be all lowercase without Spaces; string
	"name": "my-vscode-plugin".// Version number; string
	"version": "1.0.0".// The name of the person publishing the plug-in string
	"publisher": "Bob".// the lowest version of VScode the plugin supports, not *; Object
	"engines": {
	    "vscode": "^ 1.0.0"
	},
	// License, same as NPM license; string
	"license": "SEE LICENSE IN <filename>".// The name of the plug-in application market display; string
	"displayName": "myVScodePlugin"./ / description; string
	"description": "this is my vscode plugin".// Plugin app market category; String []; Optional value: [Programming Languages, Snippets, Linters, Themes, Debuggers, Formatters, Keymaps, SCM Providers, Other, Extension Packs, Language Packs, Data Science, Machine Learning, Visualization, Notebooks, Education]
	"categories": ["other"]
	// Keywords, which can be searched in the app market, up to 5 keywords; array
	"keywords": ["test"."vscode"."theme"].// Format the market title to match the icon; object
    "galleryBanner": {
        "color": "#C80000"."theme": "dark"
    },
    // Set the plugin to preview in the app market; boolean
    "preview": true.// Gap entry file; string
    "main": "/src/extension"
	// Contribution points, which describe the objects contributed by the plug-in; object
	"contributes": {
		// Plug-in configuration items
		"configuration": {
			"type": "object".// the configuration item title will be displayed on vscode's Settings page
			"title": "my-vscode-plugin"."properties": {
				"myVscodePluginDemo.yourName": {
					"type": "string"."default": "guest"."description": "this is your name"}}},/ / command
		"commands": [{"command": "extension.sayHello"."title": "Hello World"}].// Shortcut key binding
		"keybindings": [{"command": "extension.sayHello"."key": "ctrl+f10"."mac": "cmd+f10"."when": "editorTextFocus"}]./ / the menu
		"menus": {
			// Editor right-click menu
			"editor/context": [{// indicates that the editor only appears in the menu if it has a focus
					"when": "editorFocus"."command": "extension.sayHello".// Navigation is a group that is always at the top, followed by @6 for manual sorting within the group
					"group": "navigation@6"
				},
				{
					"when": "editorFocus"."command": "extension.demo.getCurrentFilePath"."group": "navigation@5"
				},
				{
					// Only the editor has focus and JS files open will appear
					"when": "editorFocus && resourceLangId == javascript"."command": "extension.demo.testMenuShow"."group": "z_commands"
				},
				{
					"command": "extension.demo.openWebview"."group": "navigation"}].// The icon in the upper right corner of the editor shows the text without the image
			"editor/title": [{"when": "editorFocus && resourceLangId == javascript"."command": "extension.demo.testMenuShow"."group": "navigation"}].// Editor title right-click menu
			"editor/title/context": [{"when": "resourceLangId == javascript"."command": "extension.demo.testMenuShow"."group": "navigation"}].// Explorer right-click menu
			"explorer/context": [{"command": "extension.demo.getCurrentFilePath"."group": "navigation"
				},
				{
					"command": "extension.demo.openWebview"."group": "navigation"}},// Code snippet
		"snippets": [{"language": "javascript"."path": "./snippets/javascript.json"
			},
			{
				"language": "html"."path": "./snippets/html.json"}].// Customize the new ActivityBar icon, which is the larger icon in the left sidebar
		"viewsContainers": {
			"activitybar": [{"id": "phone"."title": "Mobile phone"."icon": "images/phone.svg"}},// Customize the implementation of the view in the sidebar
		"views": {
			// corresponds to the ID of viewsContainers
			"beautifulGirl": [{"id": "apple"."name": The word "apple"
				},
				{
					"id": "huawei"."name": "Huawei"
				},
				{
					"id": "xm"."name": "Millet"}},// Icon theme
		"iconThemes": [{"id": "myIconTheme"."label": "Icon Theme"."path": "./theme/icon-theme.json"}},// Active extended event group; array
	"activationEvents": [
	    "*"].// The badge is displayed in the sidebar of the app Marketing page; Array, only badges of credit are allowed
	"badges": [].// Markdown rendering engine used in the plugin market; string
	"markdown": ""
	// Link in the market; Marketplace (default), String, false
	"qna": "".// Node.js dependencies for plug-in runtime; The object; Same as in NPM
	"dependencies": {},// Node.js dependencies for plug-in development; The object; Same as in NPM
	"devDependencies": {},// An array of the ids of the plug-ins bundled with this plug-in; array
	"extensionPack": [
	    "felixfbecker.php-debug"."felixfbecker.php-intellisense"."Kasik96.format-php"].// An array of plugins on which this plugin depends; array
	"extensionDependencies": [].// An array of locations where the plug-in runs in the remote configuration; Array; [ui, workspace],
	"extensionKind": [].// Same as NPM scripts; object
	"scripts": {},// Plugin icon, at least 128 * 128 pixels
	"icon": "icon.png"
}
Copy the code

You can also refer to the package.json file in NPM for more information