- To install this plugin, clone this repository in the Packages folder of your Sublime Text 3 installation and rename the folder as CheatSheet. Hint : You can open the Packages folder from "Preferences -> Browse Packages".
git clone https://github.com/gauravk-in/cheat.sh-sublime-plugin.git CheatSheet
- Then using the Package Control plugin, install the missing dependencies. To do this, you must open the Command Palette from "Tools -> Command Palette" and write "Package Control: Satisfy Dependencies".
- You can open the console from "View -> Show Console" to check for any errors.
Meanwhile, we are working on publishing this plugin using Package Control, which will make it easy to install and update. Stay tuned for updates on this.
- Press "Cmd + cs" to launch the input panel in Sublime Text.
- Enter your query and press Enter.
- A new tab will be opened, and the top 3 best answers for the query will be listed in this page.
- Press "Cmd + ci" to launch the input panel in Sublime Text.
- Enter your query and press Enter.
- The answer will be pasted in the open editor.
- Write your query string.
- Select the query string.
- Press "Cmd + cr" to replace the selected query string by the answer generated from cht.sh.
- On Windows and Linux the "Cmd" key is replaced by "Ctrl" key.
- To get answers without comments, use "Alt" key in place of "Cmd" or "Ctrl".