- Open the Project Settings dialog box and click JavaScript Libraries.
- In the Libraries area, click the Add button.
- In the New Library dialog box that opens, specify the name of the library, the framework to configure the library from, and framework version to use.
-
Specify the library visibility:
- To enable associating the library with the current project only, choose Current project.
- To make the library available in any PyCharm project, choose Global.
- Create a list of files to be included in the library.
- In the New Library/Edit Library dialog box, click the Attach button and select the required file or directory in the dialog box that opens. PyCharm returns to the New Library dialog box where the Name read-only field shows the name of the selected library file or the names of relevant library files from the selected directory.
- In the Type field, specify which version of library you have downloaded and are going to add.
- Choose Debug if you are adding a library file with uncompressed code. This version is helpful in the development environment, especially for debugging.
-
Choose Release if you are adding a library file with minified
code.
This version is helpful in the production environment because the file size is significantly smaller.
-
Specify the URL addresses to access the documentation for library files.
- To add a link to the documentation for a library, select the corresponding library file, click the Specify button in the Documentation URLs area, and specify the documentation URL in the dialog box that opens.
- To remove a link, select it in the Documentation URLs and click the Remove button.
- In the New Library/Edit Library dialog box, select the required library file and click the Remove button.
- Open the Project Settings dialog box and click JavaScript Libraries.
- In the Libraries area, select the required library and click the Edit button.
- In the Edit Library dialog box that opens, add library files, remove library files, and change links to documentation as necessary.
- Open the Project Settings dialog box and click JavaScript Libraries.
- In the Libraries area, select the required library and click the Remove button.
- Open the Project Settings dialog box, and click JavaScript Libraries under the JavaScriptnode.
- In the JavaScript. Libraries page that opens, click the Manage Scopes button.
- In the JavaScript Libraries. Usage Scope dialog box that opens, specify the custom JavaScript libraries to use in files and folders within your project.
To appoint a library for a file or folder, select the required item in the File/Directory field
and choose the relevant library from the Library drop-down list.
The contents of the list depend on the visibility type of the configured libraries. Global libraries are on the list in all PyCharm projects. Project libraries are on the list only within the project they were originally configured in.