Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

To add another project (railsapp2) to the main one, go to

File |
span
classshortcut
Wiki Markup
{span:class=shortcut}File \| Open...{span}
menu, and in the Open Project dialog check the Open in current window -> Add to currently opened projects
span
classshortcut
Wiki Markup
{span:class=shortcut}Open in current window \-> Add to currently opened projects{span}
option:

The railsapp2 project appears in the tree and if you expand the node, you can see the whole structure of the project. The Ruby SDK related to the project is available as well:

...

Once the project was added you can delete it from the list. To remove any project except the main one navigate to it in the project tree, right-click it and choose the

Remove from Project View
span
classshortcut
Wiki Markup
{span:class=shortcut}Remove from Project View{span}
option:

If the window with several projects was closed you can reopen it with a help of

File | Open Recent
span
classshortcut
Wiki Markup
{span:class=shortcut}File \| Open Recent{span}
menu. Multiple projects will be separated by a comma started with the main one:

...

Note

Please aware that you can add projects to the main project only one by one. You cannot add any project from

File | Open
span
classshortcut
Wiki Markup
{span:class=shortcut}File \| Open Recent...{span}
menu. Please always use File |
span
classshortcut
Wiki Markup
{span:class=shortcut}File \| Open...{span}
menu. You can also add a new project to the list with a help of File | New
span
classshortcut
Wiki Markup
{span:class=shortcut}File \| New Project...{span}
menu.

2. Managing SDK and Gems

To change the settings of Ruby SDK for a project, go to the

Settings -> Ruby SDK and Gems
span
classshortcut
Wiki Markup
{span:class=shortcut}Settings \-> Ruby SDK and Gems{span}
. All projects will be displayed in the list. Select a project and then select an SDK:

To add a new SDK, click

+
span
classshortcut
Wiki Markup
{span:class=shortcut}+{span}
under the list:

All SDKs are available with related gemsets in the list. To install/update gems, press

+
span
classshortcut
Wiki Markup
{span:class=shortcut}+{span}
under the list of gems:

3. Navigating Through the Source Code

Files from all opened projects are available for navigation. For example when navigating to a class (

Navigate |
span
classshortcut
Wiki Markup
{span:class=shortcut}Navigate \| Class...{span}
) the name of the project appears in the right:

...

To invoke any action for the project such as Rails generator (

Tools | Run Rails
span
classshortcut
Wiki Markup
{span:class=shortcut}Tools \| Run Rails Generator...{span}
), Rake task (Tools | Run Rake
span
classshortcut
Wiki Markup
{span:class=shortcut}Tools \| Run Rake Task...{span}
), Bundler command (Tools | Bundler
span
classshortcut
Wiki Markup
{span:class=shortcut}Tools \| Bundler{span}
), and others, first you need to set the context. Selecting a context means that a project is selected in the project tree or a file from this project is opened in the editor and has the focus. Navigation bar (View | Navigation Bar
span
classshortcut
Wiki Markup
{span:class=shortcut}View \| Navigation Bar{span}
) can be a good context prompter as it always shows the context selected:

...

If there is no VCS set up for the main project go to

VCS | Enable Version Control
span
classshortcut
Wiki Markup
{span:class=shortcut}VCS \| Enable Version Control Integration...{span}
and choose VCS you want to use:

...

To enable the version control integration for any secondary project please use the terminal (

Tools | Open
span
classshortcut
Wiki Markup
{span:class=shortcut}Tools \| Open Terminal...{span}
) first. For example init Git integration for railsapp2:

Then go to

Settings -> Version Control
span
classshortcut
Wiki Markup
{span:class=shortcut}Settings \-> Version Control{span}
and register the Git root:

Note

Please don't use

VCS | Enable Version Control
span
classshortcut
Wiki Markup
{span:class=shortcut}VCS \| Enable Version Control Integration...{span}
for secondary projects because of the known issue.

...

Deployment settings are also defined per project. When deploying to a remote host, you can set the mapping in

Settings -> Deployment
span
classshortcut
Wiki Markup
{span:class=shortcut}Settings \-> Deployment{span}
for each project if you need:

...