Change Project name in WebStorm - webstorm

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.

Related

Moving PyCharm .idea directory

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

How to open Webstorm projects directly from a folder in Windows Explorer?

Is there a way to launch Webstorm so it opens a selected folder in Windows Explorer?
Instead of:
launching Webstorm (possibly on a different project from its last session);
closing the current project;
browsing for the desired project in the project wizard panel;
finally, opening it.
Something like:
Setup (a one time thing, per projects) a shortcut to Webstorm with an argument pointing to the given project.
Then you could just double-click that shortcut to start it off from that project!
Is there anything like this that exists? Or a way to register any folder with an .idea subfolder to have an "open with... -> Webstorm" right-click option?
Nevermind, figured it out.
The icon shortcut works by simply adding the whole path to your project as an argument to the Shortcut Target, like so:
(obviously, you can copy-paste it instead of typing it all by hand)
If you have multiple shortcuts setup and you open each ones, as far as I can tell... it opens them in separate Webstorm windows, leaving the previous one open. So you can jump between projects a bit more efficiently this way.

Crossed folders in eclipse luna

I've just installed Eclipse Luna and in my project explorer there are appearing some folders crossed out, and I don't know how to remove it and even what it means.
Looks like the Engine and Gameplay folders are also being duplicated. What is going on?
Thanks
I had a similar (the same?) issue after creating a new folder in an existing project. Having found this (incredibly slowly-loading) documentation page, I figured out the gray diagonal line in CDT can actually also mean "excluded from build".
This was readily countered by right-clicking on the folder in the project explorer, choosing
Resource Configurations -> Exclude from Build...
and then deselecting all configurations.
What I did was go to:
Project properties ->C/C++ General ->Paths and Symbols
There I added the folder to the include directories and at the Source Location Tab I clicked on:
Edit filter -> Remove
I think it has to do with how you added the folder to the project (through eclipse, as a source folder or externally)

How do I rename a Django project in PyCharm?

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

How to add existing project into Geany

I have an existing C++ project which is built with Gnu Make. I want to develop the source under Geany but am unable find a way to import it.
I know this i a rather old question, but it was first hit on my search for the exact question. Since I have figured it out now, I wanted to give an answer for future searchers.
One should create a new project. Select a name for the project, select a location for the project file, e.g. the root of the project directory and the the root of the project directory. That's it.
But - the documents tab is confusing, so I suggest installing a file browser plugin, by selecting Tools -> Plugin Manager and then select the plugin File Browser. This adds a tab that will enable browsing the files in the project.
Hope it helps.
You don't have to import your project.
In geany go to "Project/New" and you'll be able to create a new project. Select a name for your project, select a file to save its settings and select the base directory where your source files are.
Then you'll be able to build to project with "Build/Make". It will run make within the base directory you selected. You can customise the build commands if you go to "Build/Set build commands".