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'.)

0

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!"


0
Avatar
Permanently deleted user

Thanks!
That took cae of all the items. I can actually use the product now.
This is long in comong as the forum and my browser ween't cooperating on the reply.

0

请先登录再写评论。