I am trying to move the PyCharm .idea directory out of the project folder (a django project in this case).
I followed the instructions from JetBrains to move the .idea.properties file, which involves creating a custom .idea.properties file. I figured this might also provide a means to move the .idea folder, but having done this, it does not appear to have addressed the issue and if I create a new Django project the .idea directory is still in the Django project folder. I have looked at the contents of the custom .idea.properties file and although there is an entry relating to where it looks for .idea files to flag them as such, it doesn't appear to actually have a specific setting for the location of the .idea directory it creates for new projects.
As is often the case with JetBrains, I feel like I am missing the point somewhere and in this case searching on StackExchange or more general googling has not shed any light on the problem.
There is a workaround that I found that is in a nine-year old thread on the JetBrains 'YouTrack' bug tracking system (https://youtrack.jetbrains.com/issue/IDEA-170102?p=WI-343) but it refers to changing the Settings|Directories option in PyCharm, which I cannot locate although there are many items in the settings that refer to different directories.
Any help would be appreciated.
Instead of moving .idea directory, you can create new PyCharm project than add Content Root as original project folder.
This way you can work on the same code in different PyCharm instances
in PyCharm to change project's Content Root go to File | Settings | Project: | Project Structure.
See work in IDEA and PyCharm for the same project at the same time
Related
I am new to C++, and am running CLion with github.
I have the basic hello world project set up, and there are several .xml files in a /.idea folder that I am not sure I should be including. Right now, I am including everything. My question is: what can I leave out of vcs?
Here is a snapshot of what I have (the .xmls are at the bottom; right now everything has been added to VCS, so they are all green):
The specific question is:
If I do not add the .xml files to version control, and I checkout the code from some other computer, will I be able to run the code? Or are some of the .xml files needed?
(didn't realize this was too broad. will delete if it is still too broad).
you can omit the entire .idea folder by creating a .gitignore file in the root directory and adding a line for
.idea
then you can select the .idea folder and under 'vcs' or 'git' choose 'revert' to remove them from staging if you have not committed them or to undo the commits that added them to the repo
good luck!
I have recently inherited a directory of ColdFusion code developed in Dreamweaver. After downloading the source from svn into a local development directory, I attempted to follow the instructions I found in several places online for Importing a Dreamweaver site into a project, using the Existing Folder as New Project option (since it was never previously a CFBuilder project, just Dreamweaver), I assigned the CF Nature to the root in the Navigator window. However, when I attempt to drop the tree below the root, no files appear - and the little > arrow is even gone, as if there are no files.
What should I be looking at here? Obviously it lacks something that tells it all the files in the project. It is odd, because when I select the root of the directory where all the source files are "ZZZ Master Website", it creates another directory INSIDE that directory, also called "ZZZ Master Website". That's where the .project and settings files show up. I feel like I'm missing something.
FWIW, I'm no CF guy - I'm inheriting this because that resource is no longer available. So... be patient - I'm trying to come up to speed here.
Thanks for any help in advance!
duncand
i want to edit cpp files in Eclipse but can't open the folder that contains the cpp files.
The folder symbol is a folder with an exclamation mark at the bottom right. I tried to look up the meaning of the symbol in the eclipse docs but didnt find something. Maybe a bit more background: the cpp files belong to a cocos2d-x application, eclipse cdt is installed. The files are normally accessible with notepad++ or any other texteditor but eclipse just doesn't list them. Refresh, clean or restart didnt help either. Maybe you guys can help me out.
The esclamation Mark deals with build path problem. This problem are usually related with eclipse metadata, probably rebuilding the Index Will fix it, but the easiest thing is delete the project (without deleting from disk) and import the project using import existing project into workspace. Male a backup before any operation.
Found the problem, a little fault in the path, edited the folder properties now everything works!
I'm trying to change the name of my project in webstorm.
I have looked at this answer on their developer forums, but it does not work for this version (Webstorm 7). Changing the contents of .idea/.name does not change the name displayed in bold in the project folder view. I searched the .idea folder for instances of the old project name and replaced them across various configuration files like modules.xml and PROJECTNAME.iml. There are quite a few. I must have missed one because I couldn't open the project after that :)
My solution was to blow away the .idea/ folder and open the directory again, creating a new project.
Is there a better way to change a project name?
Hit cmd+R (or ctrl+R I guess) or Right click / Refactor / Rename while highlighting the top level dir in the project tree.
It shows a popup whether you want to rename the dir or the project name.
If you are struggling to rename your project in the IDE you can just rename the .iml in the .idea folder to the desired name. e.g ./idea/myProject.iml -> ./idea/myRenamedProject.iml You should close Webstorm first. I can confirm this work on OSx. I've not tried it on another operating system.
I just delete the .idea folder from File Explorer (Finder in OSX), rename the root folder of the project, and then open up the project in WebStorm. WebStorm will regenerate the .idea folder according to the new root folder name.
I've got the same problem with renaming a project in PhpStorm. There was no popup window as #bagonyi mentioned. Changing from Project Files to Project has helped. I guess it will be the same in WebStorm.
What do I need to do in order to rename my Django project in PyCharm? I am new to Django and PyCharm and would like to use a different name for my project.
The built-in solution for re-naming Django projects in PyCharm has worked for me in the past on small projects, although I haven't tried it on a large project yet. To use it, select the project folder from the file-tree (by default on the left hand side of the screen), then press shift-F6 to bring up the rename dialogue. You can enter in your new name here and preview the changes, which can help prevent surprises. If you're happy with the preview, click on the "Do Refactor" button at the bottom of the window.
This is also a useful way to rename Django apps.
You can access the same functionality through right-clicking on the folder/item and hovering over the Refactor sub-menu. Or pressing ctrl+shift+a and searching for rename.
I'm using Windows, but it's probably the same for other operating systems.
Close PyCharm, open the directory in Windows Explorer (or your favorite file manager).
Rename the project directory
Rename the subdirectory of the same name that is inside your project directory
Open the .idea directory (in the project folder), rename the .iml file
Also in the .idea directory, open the .name file in a text editor and change the name in there
Open the project in PyCharm again.
In the settings.py file, you'll need to update the path specified in TEMPLATE_DIRS
You may also want to update your Run/Debug configurations (Alt-Shift-F10).
You'll need to replace some other occurrences of your old project name. In PyCharm, Ctrl-Shift-F will allow you to search the contents of all your files to find these occurrences.
Maybe: right-click on root folder in "Project" window, choose Refactoring -> Rename and choose "Rename Project"
svass's answer worked for me, except that I also had to manually change instances of my old project name in files located inside the .idea directory of my project.
If you cd into your project directory and grep for your old project name
grep -rli oldprojectname ./.idea
That returned the following list for me, then I manually modified each file.
./.idea/modules.xml
./.idea/workspace.xml
./.idea/dataSources.xml
./.idea/oldprojectname.iml <-- this will need to be renamed to new project name, and it's contents modified
./.idea/dataSources.ids
./.idea/.name
./.idea/misc.xml