+2

Easier way to get/set settings on a per-buffer basis

Bradford Larsen 7 years ago • updated 7 years ago 0
Occasionally, I'm editing a file of a particular type, and I want to use a custom setting just for that buffer.  For example, I might want to enable word wrapping at column 60 in a particular buffer.  I do a web search to look up the console command to do this:

    view.settings().set('word_wrap', 60)

I never remember this incantation and have to look it up each time I want it.  Other editors, such as vim, have a much simpler way:

    set VARIABLE=VALUE

Perhaps a similarly lightweight way to specify custom settings on a per-buffer basis can be added to Sublime Text 2?