简体   繁体   English

如何从记事本++中删除自动完成选项

[英]How to remove an autocomplete option from notepad++

I am using notepad++ and have enabled the autocomplete feature. 我正在使用记事本++,并启用了自动完成功能。 For the most part I like having it, but there are a few words it tries to autocomplete that just interfere with my productivity. 在大多数情况下,我喜欢使用它,但是有一些单词会尝试自动完成,这会干扰我的工作效率。

For example, whenever I try to type <?php it will attempt to autocomplete to <?php_egg_logo_guid , <?php_init_loaded_file or a sundry of other such options. 例如,每当我尝试键入<?php ,它将尝试自动完成为<?php_egg_logo_guid<?php_init_loaded_file或其他类似选项。 It is a bit annoying and I don't even know what the use of any of them are. 这有点烦人,我什至不知道它们的用途。

I would like to remove these unneeded options from autocomplete. 我想从自动完成功能中删除这些不需要的选项。 Is it possible? 可能吗? If so, how? 如果是这样,怎么办?

Thanks! 谢谢!

Edit: After a few bad answers, let me clarify: I am not trying to disable autocomplete completely, just remove a word or two from the dictionary of choices which it chooses to give hints from. 编辑:在给出一些错误的答案后,让我澄清一下:我不是要完全禁用自动完成功能,只需从它选择提供提示的选择词典中删除一个或两个单词即可。

在notepad ++的程序文件的plugins \\ API中编辑相关的.xml ,以删除愚蠢的php自动完成功能,如此处所述

https://gist.github.com/jmc734/157ff4a4ee85f8e58102 https://gist.github.com/jmc734/157ff4a4ee85f8e58102

You can add <?php as a suggestion. 您可以添加<?php作为建议。 It will show as the first choice in autocomplete. 它将显示为自动完成的首选。

edit: 编辑:

%ProgramFiles(x86)%\\Notepad++\\plugins\\APIs\\php.xml %PROGRAMFILES(x86)的%\\记事本++ \\插件\\的API \\ php.xml

add the line: 添加行:

<KeyWord name="php" func="no"/>

Settings > Preferences > Auto-Completion > Uncheck the Enable auto-complete & Function hint options. 设置>首选项>自动完成>取消选中启用自动完成和功能提示选项。 This should do it. 这应该做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM