Tips & PyCharm.IDE_ error settings

1, used today PyCharm time, fast chips Inspections added a plus should not ignore the item, but to go inside Inspections setting, do not know is which corresponds to ...

 1.1, the degree of search, some say the file in the Windows folder in the user directory ".PyCharm2019.2" (note in front of a point) to delete it (for example, "C: \ Users \ Administrator \ .PyCharm2019.2") but in this way will all the settings are deleted, all set to a weight had again

 1.2, I find a moment, setting corresponds Inspections are stored in the file "C: \ Users \ Administrator \ .PyCharm2019.2 \ config \ inspection \ Default.xml" in the future to change / delete the file on it. Content beginning of this file is:

<profile version="1.0">
  <option name="myName" value="Default" />
</profile>

 1.3, the place is set Inspections: (PyCharm -> File -> Settings ...)

  

 

2、提示:“duplicated code fragment (? lines long)”

  

 ZC: position is set at the top, but can not be seen is where to set the ...

 ZC: individual profile: "C \ Users \ Administrator \ .PyCharm2019.2 \ config" in correspondence ... do not know what can only see the latest updates several files to see if there would not have this set item...

 ZC: view the configuration file, found two places changed :( Keyword: "DuplicatedCode")

  (1) C: \ Users \ Administrator \ .PyCharm2019.2 \ config \ inspection \ Default.xml, the following passage is new:

  <inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
    <Languages>
      <language minSize="54" name="Python" />
    </Languages>
  </inspection_tool>

  (2) C: \ Users \ Administrator \ .PyCharm2019.2 \ config \ options \ other.xml, the following passage is not know whether it was new or modified (do not pay attention to see what it was like ... the original) :

        <selected-state>
          <State>
            <id>DuplicatedCode</id>
          </State>
        </selected-state>

 

3、

4、

5、

 

Guess you like

Origin www.cnblogs.com/pythonzc/p/11459120.html