如何在 Notepad++ 中启用 jQuery 代码辅助

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2140987/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 12:51:39  来源:igfitidea点击:

How do I enabling jQuery code assist in Notepad++

jquerynotepad++code-completion

提问by davykiash

I have recently downloaded Notepad++ and am at loss on how to enable code assist for JQuery/JQueryUI on it.

我最近下载了 Notepad++ 并且不知道如何在其上启用 JQuery/JQueryUI 的代码辅助。

Any tips and directions?

任何提示和方向?

采纳答案by Justin Ethier

Out-of-the-box, Notepad++ has code assistance for languages, not frameworks. For jQuery you should set the language to Javascript. From the menu, navigate to:

开箱即用的 Notepad++ 具有针对语言而非框架的代码帮助。对于 jQuery,您应该将语言设置为 Javascript。从菜单中,导航到:

Language => J => Javascript

语言 => J => Javascript

I believe that Notepad++ should also be smart enough to automatically do this if you open a .js file.

我相信 Notepad++ 也应该足够聪明,可以在打开 .js 文件时自动执行此操作。

回答by Rohit

Language pack for jQuery Is available on github here

jQuery 语言包可在此处的github 上获得

for detail installation of jQuery auto complete in notepad++ you can read jquery auto complete in notepad++

有关在记事本++中jQuery自动完成的详细安装,您可以在记事本++中阅读jquery自动完成

回答by Jason Coate

There is a handy code completion plugin for Notepad++ called QuickText.It is very simple to use and can be utilized for any language that Notepad++ supports including Javascript(jQuery).

Notepad++ 有一个方便的代码完成插件,称为QuickText。它使用起来非常简单,可用于 Notepad++ 支持的任何语言,包括 Javascript(jQuery)。

-Good Luck

-祝你好运

回答by kodeart

Also, switch to "View As List"in Function List (Windows shortcut Ctrl+Alt+Shift+L), and you can show/hide functions from the menu "Plugins > Function List > Show All Functions" (Notepad++ 5.7)

此外,切换到函数列表中的“查看列表”(Windows 快捷键Ctrl+Alt+Shift+L),您可以从菜单“插件 > 函数列表 > 显示所有函数”(Notepad++ 5.7)中显示/隐藏函数