All Projects → fnando → sublime-better-ruby

fnando / sublime-better-ruby

Licence: other
Sublime Text Ruby package (snippets, builder, syntax highlight)

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to sublime-better-ruby

CSSFontFamily
CSSFontFamily is a Sublime Text plugin with a collection of font stacks autocomplete.
Stars: ✭ 15 (-54.55%)
Mutual labels:  sublime-text, sublime-text-plugin
SublimeXssEncode
Converts characters from one encoding to another using a transformation.
Stars: ✭ 37 (+12.12%)
Mutual labels:  sublime-text, sublime-text-plugin
sublime-text
Subime Text 相关资源收集整理
Stars: ✭ 62 (+87.88%)
Mutual labels:  sublime-text, sublime-text-plugin
sublime-profiles
Profile Switcher for Sublime Text
Stars: ✭ 59 (+78.79%)
Mutual labels:  sublime-text, sublime-text-plugin
zephir-sublime
Sublime Text syntax highlighting for for Zephir
Stars: ✭ 41 (+24.24%)
Mutual labels:  sublime-text, sublime-text-plugin
Editorconfig Sublime
Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors
Stars: ✭ 1,749 (+5200%)
Mutual labels:  sublime-text, sublime-text-plugin
CodeChampion
Plays epic sound clips when you write epic code on sublime Text!
Stars: ✭ 30 (-9.09%)
Mutual labels:  sublime-text, sublime-text-plugin
Sublime-Pretty-Shell
🐚 Shell Script Formatter / Syntax Checker (Powered by shfmt)
Stars: ✭ 28 (-15.15%)
Mutual labels:  sublime-text, sublime-text-plugin
simple-ftp-deploy
This package for Sublime Text 3 give you possibility to auto upload file to FTP server when you save local file.
Stars: ✭ 16 (-51.52%)
Mutual labels:  sublime-text, sublime-text-plugin
sublime-import-helper
A Sublime Text Plugin that helps you to import your modules.
Stars: ✭ 69 (+109.09%)
Mutual labels:  sublime-text, sublime-text-plugin
SaneSnippets
Sublime Text snippets optimized for humans, not robots
Stars: ✭ 59 (+78.79%)
Mutual labels:  sublime-text, sublime-text-plugin
sublime-live-server
🌍️ Launch a Development Server directly from Sublime Text
Stars: ✭ 49 (+48.48%)
Mutual labels:  sublime-text, sublime-text-plugin
Sublime-Text-Monokai-theme-for-Visual-Studio-Code
Monokai theme of Sublime Text but for Visual Studio Code instead. Perfect and identical copy. Download it from VSCode Marketplace!
Stars: ✭ 35 (+6.06%)
Mutual labels:  sublime-text
SublimeGremlins
Reveal odd and invisible whitespace characters in Sublime Text.
Stars: ✭ 41 (+24.24%)
Mutual labels:  sublime-text
sublime-scheme-writer
A color scheme for focused long-form writing
Stars: ✭ 92 (+178.79%)
Mutual labels:  sublime-text
sublimetext-node-debugger
a simple plugin for sublime text2/3 to debug node file in browser
Stars: ✭ 19 (-42.42%)
Mutual labels:  sublime-text
github markdown snippets
GitHub flavored Markdown with plain'ol HTML knowledge! Boom!
Stars: ✭ 23 (-30.3%)
Mutual labels:  sublime-text
Julia-sublime
Julia syntax highlighting for Sublime Text
Stars: ✭ 106 (+221.21%)
Mutual labels:  sublime-text
StatusBarFileSize
Show the file size in the Sublime Text status bar
Stars: ✭ 27 (-18.18%)
Mutual labels:  sublime-text
exec-in-window
exec-in-window is replacement for exec command used in Sublime Text 2 build system
Stars: ✭ 15 (-54.55%)
Mutual labels:  sublime-text-plugin

Better Ruby

This is a custom Ruby package, that includes snippets, custom syntax highlighters and more!

Installation

Setup Package Control Repository

  1. Follow the instructions from https://sublime.fnando.com.
  2. Open the command pallete, run “Package Control: Install Package“, then search for “Rubocop Formatter“.
  3. Install the ApplySyntax package and use the settings below.

By the way, there is a Better Rails package as well.

Git Clone

Clone this repository into the Sublime Text “Packages” directory, which is located where ever the “Preferences” -> “Browse Packages” option in sublime takes you.

ApplySyntax configuration

{
  "new_file_syntax": "Better Ruby/Ruby",
  "reraise_exceptions": true,

  "syntaxes": [
    {
      "syntax": "Better Ruby/Bundler",
      "rules": [{ "file_path": ".*(\\\\|/)Gemfile$" }]
    },

    {
      "syntax": "Better Ruby/Puma",
      "rules": [{ "file_path": ".*(\\\\|/)puma\\.rb$" }]
    },

    {
      "syntax": "Better Ruby/Ruby Test",
      "rules": [{ "file_path": ".*_test\\.rb$" }]
    },

    {
      "syntax": "Better Ruby/Ruby",
      "extensions": [
        "thor",
        "rake",
        "simplecov",
        "jbuilder",
        "rb",
        "podspec",
        "rabl"
      ],
      "rules": [
        { "file_path": ".*(\\\\|/)Capfile$" },
        { "file_path": ".*(\\\\|/)Guardfile$" },
        { "file_path": ".*(\\\\|/)[Rr]akefile$" },
        { "file_path": ".*(\\\\|/)Berksfile$" },
        { "file_path": ".*(\\\\|/)[Cc]heffile$" },
        { "file_path": ".*(\\\\|/)Thorfile$" },
        { "file_path": ".*(\\\\|/)Podfile$" },
        { "file_path": ".*(\\\\|/)config.ru$" },
        { "file_path": ".*\\\\Vagrantfile(\\\\..*)?$" },
        { "file_path": ".*/Vagrantfile(/..*)?$" },
        { "interpreter": "ruby" }
      ]
    }
  ]
}

Override Quote Style

By default, snippets use " as the preferred quote style. If you want to change it to ', just create the file Packages/User/Ruby-Quotes.tmPreferences with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>name</key>
  <string>Quotes</string>
  <key>scope</key>
  <string>source.ruby</string>
  <key>settings</key>
  <dict>
    <key>shellVariables</key>
    <array>
      <dict>
        <key>name</key>
        <string>TM_QUOTE</string>
        <key>value</key>
        <string>'</string>
      </dict>
    </array>
  </dict>
</dict>
</plist>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].