Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【教程】给 WebStorm 添加 Codelf 实现一键搜索 #24

Closed
unbug opened this issue Sep 6, 2016 · 4 comments
Closed

【教程】给 WebStorm 添加 Codelf 实现一键搜索 #24

unbug opened this issue Sep 6, 2016 · 4 comments
Labels

Comments

@unbug
Copy link
Owner

unbug commented Sep 6, 2016

Why?

这里有Sublime Text插件, Atom 插件, Alfred插件, Codelf Chrome App,自己用的编辑器没有 Codelf 插件也请参考 WiKi 。但如果你用 WebStorm,以下方法灰常方便。

Result?

效果就是在编辑代码时选中任意文本:

    1. 按”CTRL+S"
    1. 选“Codelf”就会立即打开 Codelf 并搜索出结果

qq20160906-0

How?

WebStorm 有个 OnlineSearch 插件,通个它可以添加任意搜索引擎,然后通过快捷键实现一键搜索:

    1. WebStorm -> Preference -> Plugins -> Browse Repositories... -> 搜索"OnlineSearch"并安装
    1. WebStorm -> Preference -> Keymap -> 搜索“OnlineSearch” -> 在“Other" 下的 “OnlineSearch”右键 -> 选"Add Keyboard Shortcut" -> 按住“CTRL+S”录入快捷键 -> 点击右下角的“Apply”完成

qq20160906-1

    1. WebStorm -> Preference -> Other settings -> OnlineSearch -> 三个输入框依次输入:Codelf, https://unbug.github.io/codelf/#%S%S -> 然后点击”Apply“完成。

qq20160906-2

最后你就可以按“Result”里说的2步使用了。

@0x457
Copy link

0x457 commented Dec 26, 2018

onlinesearch frame is nothing
image
image

@unbug
Copy link
Owner Author

unbug commented Dec 26, 2018

你需要自己添加 Codelf 的搜索,按教程里的来

@unbug
Copy link
Owner Author

unbug commented Jan 20, 2019

我试试看能不能顶上去呢?

@fengbindev
Copy link

这是我开发的基于IDEA的CODEIF插件 https://gitee.com/quella01/MappingSearch

@unbug unbug mentioned this issue Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants