Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Plugin for Qt Creator to view cheat sheets from cheat.sh

License

NotificationsYou must be signed in to change notification settings

pozemka/cheatsh-qtcreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin for QtCreator to view cheat sheets fromcheat.sh

Download here

Introduction

Cheat.sh is a community-driven cheat sheets repository for programming languages, databases, linux tools and commands. It also searches StackOverflow if nothing is found in cheat.sh repository.

This plugin provides integrated access to cheat.sh from Qt Creator.

For example, you want to know how to get random number in a range. Instead of switching to documentaion or to browser you can search with plugin forrandom in range and read cheat sheet right inside Qt Creator.

Search examples:tie,RAII,random in range,measure time,reverse a list.QML/js function,Qt/resources,SQL/select,tar

Usage

From editor

Right-click on a word or selection and chooseSearch cheat.shfrom popup menu. Or hitAlt +⇧ Shift +c

Context menu example animation

Context menu example animation

From Locator

  1. HitCtrl +k to focus Locator
  2. Typech <search term> to search in default context orcs /<context>/<search term> to override context for this search
Locator menu example animation

Locator example animation

Pasting results

HitAlt +⇧ Shift +v to paste result in text cursor position. Or right-click in text editor and selectPaste result from context menu.Please note that most of the comments will be stripped and only the code will be pasted (Result of ?TQ request to cheat.sh).

Paste example animation

Locator example animation

Next/Previous answer

You can switch between answers by pressing "Next item" (F6) and "Previous item" (⇧ Shift +F6) buttons on the cheat.sh panel.

Next/Previous buttons

Useful settings

Plugin setting allows you to:

  • change default search context to your favorite language (default value is C++ language)
  • set custom URL to self-hosted cheat.sh instance
  • turn on and off displaying comments in results
  • disable update checks

Installation

To install plugin, please download suitable version fromreleases page.Then extract archive to user plugin directory:

  • Windows Vista and newer:"%LOCALAPPDATA%\QtProject\qtcreator\plugins\x.y.z". For example:c:\Users\Username\AppData\Local\QtProject\QtCreator\plugins\4.10.0\cheatsh.dll
  • Linux:"~/.local/share/data/QtProject/qtcreator/plugins/x.y.z" or"$XDG_DATA_HOME/data/QtProject/qtcreator/plugins/x.y.z" . For example"/home/user/.local/share/data/QtProject/qtcreator/plugins/4.10.0/cheatsh.so"

Please note:

  • for Qt Creatorprior 4.9.0 plugin must be put into subdirectory with exact match to Qt Creator version (For example…/QtProject/qtcreator/plugins/4.8.2). Startingfrom 4.9.0 you can put plugin into subdirectory with lowest patch version (e.g. 4.9.0 instead of 4.9.2).
  • Qt Creator4.9.x for Windows has broken SSL support so you shouldinstall OpenSSL manually.

Compilation

SeeINSTALL for more info about compilation from sources.

Build plugin

About

Plugin for Qt Creator to view cheat sheets from cheat.sh

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp