szymonprz / idea-cheatsh-plugin

Plugin for loading code snippets from cheat.sh directly to editor without need to switch your mental context

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idea-cheatsh-plugin

Plugin for loading code snippets from cheat.sh directly to editor without need to switch your mental context

Features

  • No configuration needed to start using it
  • Detects context/programming language from current file opened in editor
  • Multiple answers can be displayed for asked question
  • Possibility to enable/disable comments per project - comments are disabled by default

Installation

Install from idea plugins marketplace

Usage

Invoke find snippet action by using Alt + P or from actions menu

  1. Write your question
  2. Wait a second, answer will appear automatically in field below your question
  3. Use Ctrl + N for next answer and Ctrl + P for previous or switch answer by buttons
  4. Enter will paste displayed snippet into editor

Preview

Use keyboard shortcut Alt + C , S to replace question with snippet

  1. Select text in an editor
  2. Press keyboard shortcut Alt + C , S

Preview

Replace selected text with snippet by using editor context menu

  1. Select text in an editor
  2. Right click and choose "Replace with snippet"

Preview

Configuration options

  1. Enable/Disable comments per project

Preview

Contributing

I'm open to any improvements so in case of new ideas just create an issue and we will discuss it

About

Plugin for loading code snippets from cheat.sh directly to editor without need to switch your mental context

License:MIT License


Languages

Language:Kotlin 86.5%Language:Groovy 13.5%