Table of contents
How to add Open Folder as PyCharm Project
The first step: win+r to open, enter regedit, open the registry manager
When I first installed pycharm, I didn't check the Open Folder as PyCharm Project option, or I checked it, but later I thought it was useless and wanted to delete it. Personally, it is recommended to add it, because when pycharm opens, it opens the recently used project by default, and this project is not necessarily what we just want to use. If the specified file cannot be selected and opened as a pycharm project, so that every time you open pycharm, you have to load a bunch of unnecessary things. After loading, open the project you want in pycharm. If the project is large, it will take a long time to load , very troublesome.
How to add Open Folder as PyCharm Project
The first step: win+r to open, enter regedit, open the registry manager
Find the path below:
Computer\HKEY_CLASSES_ROOT\Directory\Background\shell
Select the shell, right-click to create a new [item], name it PyCharm, then double-click the default item in the right area, modify it to Open Folder as PyCharm Project, and click OK
Right-click the blank area, create a new [string], name it Icon, and modify the value to the pycharm path
The pycharm path can be right-clicked on the exe file, Security -> Properties to find the path. Double-click the value in the column of the item name to set the value of the item, pay attention to delete the quotation marks
Select PyCharm, right-click to create a new [item], the name must be command, and then modify the default item in the right area to "path" "%V"
Note that quotation marks are added here
Step 2: In the shell under the registry modifier background, start from the new [PyCharm] and follow the above again
Note that the shell here in the second step is not the shell in the background, but the shell at the same level, don't confuse it
Done at this point: