Skip to content
Plugin for loading code snippets from cheat.sh directly to editor without need to switch your mental context
Kotlin Groovy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contrib
gradle/wrapper
src
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

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

You can’t perform that action at this time.