Book Image

Instant RubyMine Assimilation

By : David L. Jones
Book Image

Instant RubyMine Assimilation

By: David L. Jones

Overview of this book

Ruby and Ruby on Rails applications can become very complex very quickly, with hundreds of different files to contend with during a typical day of development. With RubyMine, you can become much more productive and let the IDE take care of the menial tasks while you concentrate on the details and structure of your applications. Instant RubyMine Assimilation shows you how to integrate the RubyMine development environment into your everyday development process. With step-by-step instructions and practical examples, you will learn how to customize the environment precisely to suit your needs, debug and test your code, and get the most out of many other features of RubyMine. Starting with the installation of RubyMine on your preferred platform, this guide will walk you through creating your first program. You will be taken through everything from the development and testing process all the way to deploying your website for the world to enjoy. You will learn how to manage your project in RubyMine including integrating version control, testing, and debugging your projects. Furthermore, you will learn how to navigate complex projects, view database tables, and utilize the built-in console and deployment tools of RubyMine, all of which will help you become an expert developer This book will also teach you how to install and use Gems, change Ruby environments, and use code coverage and reports to enhance your testing. By the end of this book, you will be able to confidently deploy your Rails application to a server, all within the inviting environment that is RubyMine.
Table of Contents (7 chapters)

Getting comfortable with your new skin (Should know)


We will now investigate how to navigate and customize the RubyMine environment, including windows and panel placement, configuration options, tools, and settings.

Assimilation is easier if you are comfortable with your skin.

RubyMine has a wide variety of options and configuration changes that you can make to precisely match your work style. It allows the use of TextMate plugins and even lets you emulate the VIM text editor if you are so inclined to such madness.

Let's start by changing the basic template that comes with RubyMine into an alternate color structure.

Getting ready

Start RubyMine and open the HelloWorld project that we created earlier.

How to do it...

To change the colors and fonts by switching themes, follow the steps listed below:

  1. Click on the item in Settings from the Tools menu. On the left-hand side of the Settings window, there is a setting named Editor.
  2. Click on the gray arrow to open up this setting, as shown in the following screenshot:

  3. Then, click on the Colors and Fonts setting. This window will let you change the overall theme for the entire RubyMine window system.

  4. Click on the default pull-down menu and select the theme Darcula.

  5. Hit OK at the bottom of this window and RubyMine will confirm that you want to change the look and feel of the program.

  6. Select OK in this dialog box and your theme will be set. RubyMine will then ask you to restart the program and you will then be able to see your changes completely. The environment should now look something like this:

There's more...

All of the settings, colors, fonts, sizes, and so on can be modified through these various settings dialogs and saved as your own custom theme.

We can reset the default colors by selecting the Appearance option in the Settings window. There is a pull-down menu that has default and Darcula in it under the heading of Theme:. The RubyMine environment is made up of various panels that fit together on the screen. You have full control to modify your workspace for easier assimilation. Each panel can be resized, pinned, docked, floating, and split.

The panels all have a common menu that looks like the following screenshot:

There is a menu item for each of those main controls as follows:

  • Pinned Mode – If this option is selected, this means that the panel will remain open even if the focus moves away from the panel

  • Docked Mode – If this option is selected, this means that the panel is part of the entire RubyMine window structure

  • Floating Mode – If this option is selected, this means that the panel can become its own window completely and moved out of the structure, even into another screen entirely

  • Split Mode – If this option is selected, it allows for multiple views to occupy the same panel

In order to maximize the screen for writing code specifically, select all of the panels and uncheck the Pinned menu. Now, click on the text window in the center and all of the panels should now be hidden against the main frame of the RubyMine window. There is one more button at the bottom-left corner of the main window that looks like a square. Press that button and even the thick frame will be removed. Now, your screen is ready to construct some serious code.

If you want any of the panels back, you just have to click on the specific panel button on the thick frame to reopen the panel.