喜欢用sublime的程序员们可以参考这儿来进行配置:

https://github.com/mhartl/rails_tutorial_sublime_text

搬运时间:2012年11月2日

Rails Tutorial Sublime Text setup

These are the steps needed to set up Sublime Text 2 as in the Ruby on Rails Tutorial. Instructions are for OS X; Linux and Windows users should make substitutions as necessary. (This may require web searches. Please let me know if you find something that you think should be included here.)

Command-line command

On OS X, you can set up subl as a command-line command by following the Sublime Text 2 instructions for the OS X command line:

$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

This assumes that ~/bin is in your path. If isn't (which you can check using echo $PATH at the command line) you can put subl in/usr/bin:

$ sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl

Note the use of sudo, which is required because ordinary users don't have permission to write to /usr/bin.

On Linux (especially Ubuntu), the command is the same as for OS X; only the paths differ:

$ sudo ln -s ~/Applications/Sublime\ Text\ 2/sublime_text /usr/bin/subl

(You may have to replace the path to sublime_text with the correct one for your system.)

On Linux Mint, take a look at Install Sublime Text 2 in Linux Mint.

On Windows, you can simply double-click the application icon. The setup at the command line depends on which shell you use; see if one of the techinques at the Stack Overflow discussion on Sublime Text from Command Line (Win7) works for you. You might also want to check out the video Easily Open Files from Windows Command Prompt with Sublime Text 2 (I suggest changing st2 to subl to be consistent with the instructions for the other platforms).

Basic configuration

Open up Sublime Text and use the View menu to modify the following settings:

View > Hide Minimap

View > Side Bar > Hide Side Bar

View > Layout > Columns: 2

Copy auxiliary files

$ cd /tmp
$ git clone git@github.com:mhartl/rails_tutorial_sublime_text.git
$ cp -r rails_tutorial_sublime_text/* \~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/

Setup on Linux is similar, but with a different target directory for cp:

$ cp -r rails_tutorial_sublime_text/* \~/.config/sublime-text-2/Packages/User/

On Windows, the target directory is as follows:

$ cd /tmp
$ git clone git@github.com:mhartl/rails_tutorial_sublime_text.git
$ cp -r .\rails_tutorial_sublime_text\* \'~\AppData\Roaming\Sublime Text 2\Packages\User'

Note: If using Windows Vista, 7, or 8, you should first copy all the folders and files from the remote repo into your local temporary folder located at C:\Users\User\AppData\Local\Temp. Then proceed to move these same files toC:\Users\User\AppData\Roaming\Sublime Text 2\Packages\User.

Install Sass syntax highlighting

Follow the instructions at sublime-text-haml-sass.

Set up the theme

Select Preferences > Color Scheme > User > Railscasts

Install the Rails Tutorial snippets

https://github.com/mhartl/rails_tutorial_snippets

Install Sublime Text Alternative Auto-completion

https://github.com/alexstaubo/sublime_text_alternative_autocompletion

Install SublimeERB

https://github.com/eddorre/SublimeERB

Install RubyTest

Follow https://github.com/maltize/sublime-text-2-ruby-tests. Then edit the file "Theme - Default/Widget.sublime-settings" in theLibrary/Application\ Support/Sublime\ Text\ 2/Packages directory:

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
$ subl "Theme - Default/Widget.sublime-settings"

In that file, change

"color_scheme": "Packages/Theme - Default/Widgets.stTheme"

to

"color_scheme": "Packages/User/CustomTestConsole.tmTheme"

转载于:https://www.cnblogs.com/angestudy/archive/2012/11/03/2752064.html

用sublime Text2来开发ruby on rails项目相关推荐

  1. react前端项目_如何使用React前端设置Ruby on Rails项目

    react前端项目 The author selected the Electronic Frontier Foundation to receive a donation as part of th ...

  2. 范凯谈Ruby on Rails项目实践

    Summary 在本次采访中,JavaEye站长范凯结合自己的实际开发经验,分享了在使用Ruby on Rails的过程中所应注意的事项,比如选择RoR的原因.用RoR开发的优势.网站的配置和部署.所 ...

  3. ruby on rails 项目体验

    rails new 项目名字 创建新项目 bin/rails server 启动服务器 bin/rails generate controller Welcome index 生成控制器和视图和一个路 ...

  4. 新手安装ruby on rails(ror)的成功必备手册

    2019独角兽企业重金招聘Python工程师标准>>> 如何快速正确的安装 Ruby, Rails 运行环境 每一位使用windows系统来进行ROR开发项目的都是这个世界上折翼的天 ...

  5. 清除或重新创建Ruby on Rails数据库

    我有一个充满数据的开发Ruby on Rails数据库. 我想删除所有内容并重建数据库. 我正在考虑使用类似的东西: rake db:recreate 这可能吗? #1楼 我今天对我的rails架构做 ...

  6. ruby on rails_如何将刺激添加到Ruby on Rails应用程序

    ruby on rails 介绍 (Introduction) If you are working with a Ruby on Rails project, your requirements m ...

  7. Status Ruby on Rails in China - Presentation Transcript

    Slide 1: 铁道中文应用开发现状综述 2008年8月 制作发布:铁道播客 BD7LX 深圳 http://rorcast.blogger2blogger.com/ 铁道中文应用开发现状综述 20 ...

  8. ruby on rails连接mysql_ruby on rails 连接mysql数据库

    今天在用ruby on rails连接Mysql5.6时,出现了很多意想不到的问题. 1   系统ubunt14.04,ruby 1.8.7,rails 2.3.11,mysql5.6 2 安装mys ...

  9. Ruby on Rails的下载及安装以及开发环境的搭建

    要基于ruby开发应用程序,我们必须安装ruby.gem.rails.mongrel. 第一,到官方网站上下载最新的Ruby One-Click Installer版本(已经自带了RubyGems,一 ...

最新文章

  1. 多线程Java Socket编程示例(转)
  2. Java - 探究前后分离带来的跨域问题
  3. php 文章搜索,登录 - 文章搜索 - phpStudy - phpStudy
  4. 英语 四六级 学习网址
  5. ReentrantLock.nofairTryAcquire
  6. C++STL容器,你真的会用了吗?——插入、删除、遍历和查找操作性能对比——插入(精简易懂版,句句干货)
  7. verilog设计万年历带实验报告
  8. 基于FPGA跳舞机实现
  9. ashx文件的几种使用
  10. 【Spring] Spring boot 报错 Unable to start ServletWebServerApplicationContext due to missing ServletWe
  11. Python画图实战之画K线图【附带自动下载股票数据】
  12. java paint的使用_java GUI编程之paint绘制操作示例
  13. sts中给项目添加服务器,sts创建java web项目
  14. SOA系列文章之(四):在Web服务中使用SOA
  15. php+pdo分页类
  16. 在哪里可以找到计算机病毒的源码,计算机病毒源代码怎么样
  17. [转]remote object /data/media/clockworkmod/backup/ does not exist
  18. 程序员的思维修炼:开发认知潜能的九堂课
  19. java 实验室预约系统_基于Java的实验室预约管理系统
  20. 大数据是普惠金融的未来!

热门文章

  1. 在计算机系统中使用加载器,在个人计算机系统中从软盘加载基本输入/输出系统的设备和方法...
  2. arm hisiv100 linux,hisiv100交叉编译工具链安装
  3. 雅安职业技术学院工业机器人专业_2017年雅安职业技术学院开设哪些专业(高职/专科)...
  4. 三星 android 截屏,三星S7怎么截屏 3种三星S7截图方法
  5. xml能存图片吗_如何Get大量的图片搜索流量?(分享几大Image SEO技巧!)
  6. flowlayout布局怎么换行_web前端学习怎么入门
  7. c++ n次方函数_高中数学必修一二次函数与幂函数试题及答案
  8. Spring中事务使用
  9. Tmk吃汤饭(模拟)
  10. CentOS x86_64系统手动释放内存