#4. Sublime settings

Must have these following settings before using sublime text editor for better software development.



Many developer use Sublime as text editor for software development. Sublime is easy to use and have lots of features that we need in day to day life of software development. Here are some of the hacks that we can try.


Setting #1

Go to, Preferences -> Settings

copy and paste the followings code,


{

"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",

"font_size": 11,

"ignored_packages":

[

"Vintage"

],

"save_on_focus_lost": true,

"tab_size": 2,

"theme": "Adaptive.sublime-theme",

"translate_tabs_to_spaces": true

}


Setting #2


Go to Preferences -> Settings - Syntax Specific

copy and paste the followings code,


// These settings override both User and Default settings for the Ruby syntax

{

  "detect_indentation": false,

  "default_encoding": "UTF-8",

  "default_line_ending": "unix",

  "rulers":

    [

        80

    ],

    "word_wrap": "true",

    "ensure_newline_at_eof_on_save": true,

    "trim_trailing_white_space_on_save": true

 }


Other package to install -

ctrl+shift+p - open panel

search for install(Package Control: Install Package)

Then install,

install Package Control

and then install following,

1. BracketHighlighter

2. SublimeLinter

3. SublimeLinter-rubocop

4. BeautifyRuby

5. Color Highlight

6. ERB Autocomplete

7. Git blame

Few basic shortcuts,

Select lines and hit tab or shift+tab for indentation.

Select lines and hit ctrl+/ in linux for comment.

select lines then press ctrl + shift + up/down key to move selected lines up or down against a particular line.

Select “Ruby” in the extensions menu at the bottom right.

subl . - open the current path project in sublime


Comments

Popular posts from this blog

#6. Fetch time in rails

#8. nginx+puma deployment using capistrano

#21. Rails scope