博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
用sublime Text2来开发ruby on rails项目
阅读量:5156 次
发布时间:2019-06-13

本文共 3213 字,大约阅读时间需要 10 分钟。

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

 

搬运时间:2012年11月2日

Rails Tutorial Sublime Text setup

These are the steps needed to set up as in the . 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 :

$ 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 .

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 works for you. You might also want to check out the video (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 .

Set up the theme

Select Preferences > Color Scheme > User > Railscasts

Install the Rails Tutorial snippets

Install Sublime Text Alternative Auto-completion

Install SublimeERB

Install RubyTest

Follow . 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

你可能感兴趣的文章
vue 路由的使用
查看>>
了解GO
查看>>
[转载]WSDL 教程
查看>>
小程序:兼容
查看>>
杂项-Server:Serv-U
查看>>
RDMA相关的技术网站
查看>>
关于我
查看>>
Buffer.from(str[, encoding])
查看>>
GitHub 的简单使用
查看>>
【转】MySQL常用命令总结
查看>>
Sed简单入门实例
查看>>
SQL 去除重复、获取最新记录
查看>>
vue中 v-show和v-if的区别?
查看>>
汇编小事一二三
查看>>
CVS/SVN/GIT
查看>>
网站时间显示——基于Date
查看>>
Java读取Properties文件的六种方法
查看>>
【noip2011】【codevs1137】计算系数
查看>>
IFC2x3标准阅读
查看>>
php简单了解
查看>>