English | 简体中文
-
Click "Shop Icon" on Activity Bar of VS Code
-
Enter "facility" in the input box to search
-
Click the Install button on the first facility option
After installation is successful, click the "Facility icon" on Activity Bar of VS Code to start:
Operate code snippet visually
-
Select the code snippet to be stored
-
Press
⇧⌘P
(MacOS) orCtrl+Shift+P
(Windows), inputFacility: Save Snippet
to open the selector panelOr :
Click the save icon on the right side of the tab bar to open the selector panel
-
Choose Save As or a file name and save to the local repository
- Open the Explorer
- Click Explorer to show the outline view
-
Place the input anchor at the specified position
-
Double-click 「Explorer」 to insert all the contents of the file
Or :
Click「Outline」 to insert the specified function Snippet
- Press
⇧⌘P
(MacOS) orCtrl+Shift+P
(Windows), inputPreferences: Open Settings (json)
to open the configuration panel - Configure
facility.keyword
in the form of 「keyword-path」
- Use
⇧⌘P
(MacOS) orCtrl+Shift+P
(Windows) to call up the command panel, enterFacility: Paste Fragment
to open the keyword input panel - Enter keywords and press Enter to confirm
Use ⇧⌘P
(MacOS) or Ctrl + Shift + P
(Windows) to call up the command panel, enter Facility: Open Repository
to open the Repository window
Or :
Click「Open Repository」 to open the Repository window
Sometimes I click the "Explorer" tree list, why doesn't the outline appear
The interface for obtaining the outline list is provided by VSCode, and the API call can only be used after the VSCode core module is loaded.It is recommended to restart the application or click several times to manually trigger the VSCode core module loading