This Question is Answered

2 "helpful" answers available (2 pts)
2 Replies Last post: Jun 1, 2009 4:37 AM by Garold Johnson  
Garold Johnson Newbie 3 posts since
May 23, 2009
Currently Being Moderated

May 23, 2009 4:37 AM

Project and Editor Configuration settings

I am running the latest RubyMine standalone on Windows XP, and having trouble setting some configuration items that should work.

 

1) Indent levels: I want to use 3 spaces when indenting and formatting code. The only obvious place doesn't seemt to work. I go to the formatting sample and adjust the visible indentation, save it under a new name, and use that when edition, but I still get 2 spaces always.

 

2) Add to library folders. I mainitain a small library of routines that I use across all my projects. I would like to add the directory to the list of library folders shown in the project, but can't find any way to do that.

 

3) Use mutiple top-level directories. I tried adding folders to the project level, but the menu item seems that it is going to create a subdirectory rather than allowing me to add anothe directory.

 

4) Insert fields in live templates. I want to create live templates, but I can't see any way to insert fields into the template. There is a dropdown to create fields, but I can't seem to get the fields inserted into the template. Can a field be used in more that  place with the input being given only once? (I wan't to add method / class names as a comment after the closing 'end'.)

Dmitry Jemerov JetBrains 9,647 posts since
Aug 19, 2002
Currently Being Moderated
May 25, 2009 2:10 PM in response to: Garold Johnson
Re: Project and Editor Configuration settings

Hello Garold,

 

I am running the latest RubyMine standalone on Windows XP, and having

trouble setting some configuration items that should work.

 

1) Indent levels: I want to use 3 spaces when indenting and formatting

code. The only obvious place doesn't seemt to work. I go to the

formatting sample and adjust the visible indentation, save it under a

new name, and use that when edition, but I still get 2 spaces always.

 

Editing the formatting sample doesn't have any effect. To change the indentation,

select the "General" node, select "Ruby" tab in the "Tabs and Indents" group

and change the indent value.

 

2) Add to library folders. I mainitain a small library of routines

that I use across all my projects. I would like to add the directory

to the list of library folders shown in the project, but can't find

any way to do that.

 

Go to Settings | Project Structure and press "Add Content Root" button. This

won't be shown in library folders - RubyMine doesn't have a full-featured

concept of libraries.

 

3) Use mutiple top-level directories. I tried adding folders to the

project level, but the menu item seems that it is going to create a

subdirectory rather than allowing me to add anothe directory.

 

Same as above.

 

 

4) Insert fields in live templates. I want to create live templates,

but I can't see any way to insert fields into the template. There is a

dropdown to create fields, but I can't seem to get the fields inserted

into the template. Can a field be used in more that  place with the

input being given onl

 

y once? (I wan't to add method / class names as a comment after the

closing 'end'.)

 

To add a field, simply add some text surrounded by $ marks (for example,

$CLASS_NAME$) in the template text field. The same field can be used more

than once.

 

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

 

 

 

More Like This

  • Retrieving data ...