Sublime Features

Table of Contents


Sublime documentation: http://www.sublimetext.com/docs/3/

Settings for sublime

Remote FTP/SFTP with Sublime

Main Reference: https://medium.com/@daniwhkim/remote-ftp-sftp-with-sublime-de7d71a2b400

More information about sftp for sublime: https://codexns.io/products/sftp_for_sublime/features

How to set auto-complete sinppet

Reference: https://jdhao.github.io/2018/03/28/sublime-cpp-build-system/#code-snippet

  • Go to Tools>Developer>New Snippet
  • Update the content with following
    <snippet>
        <content><![CDATA[
    std::cout << ${1} << std::endl;
    ]]></content>
        <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
        <!-- <tabTrigger>hello</tabTrigger> -->
        <tabTrigger>cout</tabTrigger>
        <!-- Optional: Set a scope to limit where the snippet will trigger -->
        <!-- <scope>source.python</scope> -->
        <scope>source.c++</scope>
        <decription>Insert a cout with newline</decription>
    </snippet>
    
  • Save this with filename as cout_oneline.sublime-snippet.
  • Now whenever you start writing cout the above given line will appear as one of options.

Auto-Writing DoxyGen Style comments

Reference: https://github.com/spadgos/sublime-jsdocs

Sublime Linter

Reference:

  1. https://sublimelinter.readthedocs.io/en/stable/installation.html
  2. https://github.com/SublimeLinter/SublimeLinter-pylint

Tricks for quick writing

Some shortcuts

  1. Jump between matching brackets: CTRL+M. For this you need to install Easy​Motion package.
  2. Select text between matching brackets: CTRL+SHIFT+M
  3. Select text between matching quotes: CTRL+'
  4. For this to work one need to install the packege named Expand Selection to Quotes. link
  5. Multi-cursor on all the lines of selected region: COMMAND+SHIFT+L
  6. Select multiple occurrence of same word: COMMANd+D
  7. Mark a line: CRTL+SHIFT+R
  8. Sublime keyboard short-cuts: link

Select Multiple Lines, Words, & Columns

  1. https://www.granneman.com/webdev/editors/sublime-text/top-features-of-sublime-text/select-multiple-lines-words-and-columns

Some Important packages for Sublime

  1. AllAutocomplete : link
  2. Terminal: Link
  3. Doc​Blockr: link



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Vi-Editor
  • Mac Settings
  • GitLab workflow for CMS-AN
  • sed command
  • Terminal multiplexer (screen/tmux)
  • Grep command
  • Git CheatSheet
  • Condor Jobs
  • awk command
  • C++ CheatSheet
  • XDAQ Basics