Git Product home page Git Product logo

Comments (6)

soon530 avatar soon530 commented on June 1, 2024

以下是檔案裡的內容,跟folder有關的就modules.xml而已,還有project-home.iml自己的檔案名稱。

.gitignore

# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

modules.xml

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectModuleManager">
    <modules>
      <module fileurl="file://$PROJECT_DIR$/.idea/project-home.iml" filepath="$PROJECT_DIR$/.idea/project-home.iml" />
    </modules>
  </component>
</project>

project-home.iml

<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
  <component name="NewModuleRootManager">
    <content url="file://$MODULE_DIR$">
      <excludeFolder url="file://$MODULE_DIR$/temp" />
      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
      <excludeFolder url="file://$MODULE_DIR$/tmp" />
    </content>
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
</module>

vcs.xml

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="$PROJECT_DIR$" vcs="Git" />
  </component>
</project>

from ide-study.

soon530 avatar soon530 commented on June 1, 2024

可以透過WebStorm改名字。
image

有2種方式,改directory(以下稱folder) or 改project。
image

from ide-study.

soon530 avatar soon530 commented on June 1, 2024

改folder
image

git的路徑就出錯了。
image

因為project-home不見了。
image

修改過來就可以了。
image

內容沒變,只是順序上對調了一下 @@?
image

from ide-study.

soon530 avatar soon530 commented on June 1, 2024

這裡要注意一下,folder改完後要先把project-home從WebStorm移除,然後local的project-home也殺掉,重新WebStrom打開x-project-home,不然WebStorm會錯亂。


可以看到project還是原來的名字。
image

來改project名字吧~
image

這樣就改過來了。
image

from ide-study.

soon530 avatar soon530 commented on June 1, 2024

看一下有什麼變化?

主要是.iml的檔名變了,但內容沒有變化。
image

modules.xml這裡可以看到引用改為v-project-home.iml了。
image

from ide-study.

soon530 avatar soon530 commented on June 1, 2024

補充一下...

改完folder,如果沒有移除project-home重開x-project-home的話,就會多了workspace.xml檔案,用來記錄改名的前後關係。

% ls -al .idea/
total 40
drwxr-xr-x  7 vic  staff   224 Nov 21 13:25 .
drwxr-xr-x  5 vic  staff   160 Nov 21 11:54 ..
-rw-r--r--  1 vic  staff   176 Nov 21 11:54 .gitignore
-rw-r--r--  1 vic  staff   276 Nov 21 13:08 modules.xml
-rw-r--r--  1 vic  staff   458 Nov 21 13:16 v-project-home.iml
-rw-r--r--  1 vic  staff   180 Nov 21 11:54 vcs.xml
-rw-r--r--  1 vic  staff  3148 Nov 21 13:09 workspace.xml
% cat .idea/workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="5b54007a-a7ee-4310-a858-bad532a0f64c" name="Changes" comment=".idea files">
      <change beforePath="$PROJECT_DIR$/.idea/project-home.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/v-project-home.iml" afterDir="false" />
    </list>
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="MarkdownSettingsMigration">
    <option name="stateVersion" value="1" />
  </component>
  <component name="ProjectId" id="2HqBl5CQGinwJFTPCoz38Ra2OmG" />
  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
  <component name="ProjectViewState">
    <option name="hideEmptyMiddlePackages" value="true" />
    <option name="showLibraryContents" value="true" />
  </component>
  <component name="PropertiesComponent">{
  &quot;keyToString&quot;: {
    &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
    &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
    &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
    &quot;last_opened_file_path&quot;: &quot;/Users/vic/dev/v-project-home&quot;,
    &quot;settings.editor.selected.configurable&quot;: &quot;project.propVCSSupport.DirectoryMappings&quot;,
    &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
  }
}</component>
  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="5b54007a-a7ee-4310-a858-bad532a0f64c" name="Changes" comment="" />
      <created>1669002880470</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1669002880470</updated>
      <workItem from="1669002881739" duration="594000" />
      <workItem from="1669003516538" duration="41000" />
      <workItem from="1669003561179" duration="173000" />
      <workItem from="1669008750921" duration="44000" />
      <workItem from="1669008804470" duration="12000" />
    </task>
    <task id="LOCAL-00001" summary=".idea files">
      <created>1669003327154</created>
      <option name="number" value="00001" />
      <option name="presentableId" value="LOCAL-00001" />
      <option name="project" value="LOCAL" />
      <updated>1669003327155</updated>
    </task>
    <option name="localTasksCounter" value="2" />
    <servers />
  </component>
  <component name="TypeScriptGeneratedFilesManager">
    <option name="version" value="3" />
  </component>
  <component name="Vcs.Log.Tabs.Properties">
    <option name="TAB_STATES">
      <map>
        <entry key="MAIN">
          <value>
            <State />
          </value>
        </entry>
      </map>
    </option>
  </component>
  <component name="VcsManagerConfiguration">
    <MESSAGE value=".idea files" />
    <option name="LAST_COMMIT_MESSAGE" value=".idea files" />
  </component>
</project>%                   

from ide-study.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.