How to solve the problem of frequent lag in webstorm

王林
Release: 2021-02-22 11:10:45
forward
6385 people have browsed it

How to solve the problem of frequent lag in webstorm

Introduction:

As the workload increases, project files become more and more large, causing webstorm to often freeze during use. problems, and sometimes even crashes. Webstorm will prompt us that there is not enough memory to perform the requested operation and we need to increase the Xms settings. According to the prompts, we can get the following solutions.

Solution:

1. Find the file WebStorm.exe.vmoptions, the path is JetBrains/WebStorm/binWebStorm.exe.vmoptions

2. Use notepad to open it and proceed Modify as follows:

Second line: -Xms526m

Third line: -Xmx1024m (ps: -Xms maximum value cannot exceed 1024, otherwise webstorm will not be able to open)

3. Restart webstorm

By the way, webstorm will scan all files and create indexes when loading the project. When developing node, you often need to rely on some other modules. At this time, there should be a node_modules folder. There may be a lot of files under it. Congratulations, you are stuck!

Solution: Right-click on the corresponding file-"mark directory as (mark the root directory as)-"excluded (excluded), so that the file can be marked and excluded so that webstorm will not scan the file. The following files, and other independent files can also be processed in this way. If you need to restore, choose to perform the same operation (there is only one option to restore)

Related recommendations: webstorm usage tutorial

The above is the detailed content of How to solve the problem of frequent lag in webstorm. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!