How to remove a specific suggestion from Atom Editor autocomplete - autocomplete

I deleted an attribute attribute1 from a class.
Atom autocomplete keeps suggesting the text "attribute1" when I type "attribute", which leads to syntax errors.
How do I remove "attribute1" from the possible suggestions?

If the suggestion is not a default suggestion, make sure you do not have the typo anywhere else in your currently open project, and then restart atom.

Atom's autocompletion package reads words from opened files into runtime TextBuffer, futher uses it when autocompletion wanted.
To remove wrong suggestion from autompletion just remove it from files you have opened.

Related

Vim whole word search "pattern not found"

I've been trying to do a whole word search in VS Code's Vim extension. The cursor is at the top of the file, and I try looking for the word "category" with /\<category\>. I've also tried /\v<category> but that doesn't work either. What am I doing wrong?
All you need to do is type /category, I don't think there is a need for '<' or '>'.
The /\<category\> option does work for me in vscode so it must have been fixed. Hopefully your issue is gone

turn off "use spaces, do not use tabs" in a jslint extension for VSCode

I got a VSCode JSLint extension and I got its settings pointing to an .eslintrc file where I have the following specified for indentation:
{
...
"indent" : [1, "tab"]
...
}
The problem is, it's still putting the squiggly green lines where I have some tabs and I can't tell where anything's going wrong with any settings.
I have evidence the rc file is actually working because I was successfully able to change it from single to double-quotes. However it appears to completely ignore the indentation setting inside my VSCode.
You could simply disable the use_spaces rule. It's separate from the indent rule you changed. A bit over an oversight from JSLint.
There were quite a few complains about that rule, even here on SO. Quite a few people (not only on SO) suggest switching to JSHint instead. Personally I've only used ESLint and therefore don't know much about the differences, and I'd suggest checking those for yourself anyway.

How do I modify the EL opening template in Eclipse?

Whenever I am working in a JSP file and I type ${ to start an el (Expression Language) tag, Eclipse will automatically add } (with a space before the closing brace) after the cursor so that I get ${ } instead of ${}.
Is there a code template in Preferences that I can modify to change this behavior, or is it beyond user preference control?
I have checked in Preferences: Web: JSP Files: Editor: Templates, but none of those templates match. I've also looked in several other sections in Preferences but haven't found anything promising.
What #Mero provided (see comments on answer above) might not be an exact answer, but creating a JSP Template probably the closest thing that I've found.
A few notes for anyone that wants to go that route:
Create a new template through menu Window->Preferences, then in the drill down menu navigate to Web->JSP Files->Editor->Templates. Click New.
Name is a shortcut you can type (the same way typing sysout ctrl+space in Java is a shortcut for System.out.println()). I suggest something simple like el. This allows you to type e l ctrl-space instead of $ { ctrl-space to pull it up.
Context tells it when it should appear in intellisense. I suggest creating two of this template where one has a context of JSP Attribute value and the other has a context of All JSP.
Description is just informative. Put whatever you want. I put 'EL Script' myself.
Pattern is where you put what will be inserted. Put $${${cursor}} or $${${script}}, depending on preference. See below for explanation on the differences.
In Eclipse Templates ${} is how you put variables in the template, so to make it actually print ${} you have to escape the $ with a $$ leading to $${}.
The predefined variable ${cursor} defines where the cursor is after intellisense replaces the el, so to have the cursor appear in between the curly braces you want to do this: $${${cursor}}.
Using any variable that is not predefined (in this case, ${script}) will simply put in that variable with a box around it and allow you to type over it and press enter when you're done, allowing you to move to the end of the closing curly brace.
Note: I understand that this is not an actual answer, but rather is a workaround. I'm putting it here simply so that those who are fine with a workaround can know how to go about doing it.
Edit
For those that don't like having to type ctrl-space, a workaround could be to have the template name start with< since on JSP pages, the < opens the intellisense, so for instance, you could have the name be <el or <$.
A workaround but not an answer:
Disable auto-close of EL tags. You type ${expression} and get ${expression}|, rather than typing ${expression and getting ${expression| }. (| denotes the cursor location)
See this answer, from when this same question was asked of Eclipse Kepler: https://stackoverflow.com/a/20258401/1021426

How do I stop Notepad++ from showing autocomplete for all words in the file

I'm trying to use Notepad++ with the Progress programming language.
I have installed the language definition in %APPDATA%\Roaming\Notepad++ as userDefineLang.xml and syntax highlighting is working correctly.
I've put a file in the notepad++ Plugins\APIs directory named progress.xml, but the contents are not recognized by Notepad++.
I've also removed all the other language files from that directory and Notepad++ still shows the exact same autocomplete suggestions it did before I removed them.
Also, when typing in a program, it looks like every word in the file is an auto-complete suggestion, not just the keywords or function names.
Anyone know how to track this down?
Notepad++ provides 2 types of features:
Auto-completion that read the open file and provide suggestion of words and/or functions within the file
Suggestion with the arguments of functions (specific to the language)
Based on what you write, it seems what you want is auto-completion on function only + suggestion on arguments.
To do that, you just need to change a setting.
Go to Settings > Preferences... > Auto-completion
Check Enable Auto-completion on each input
Select Function completion and not Word completion
Check Function parameter hint on input (if you have this option)
On version 6.5.5 of Notepad++, I have this setting
Some documentation about auto-completion is available in Notepad++ Wiki.
The answer is to DISABLE "Enable auto-completion on each input". Tested and works perfectly.

Matching keyword highlight color in editor

I am using a clone of the wombat Vim color scheme in eclipse for Python development and it works well apart from the matching keyword highlight (whatever that is named), which is ffff96. This pale yellow makes it impossible to read the white foreground text. Anyone know where this is set?
Oh! Found it! General->Editors->Text Editors->Annotations->Occurences(Pydev). Awesome. What a mess.
Agree with Paul this is a mess; you have to know the name of what you're looking for in order to find it. Bleh. However, here are actual locations for the underlying settings strings (with thanks to Frederic):
In the file {Eclipse workspace directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs :
Here are the python-specific and general text colors for matching keywords (they call it "Indication"):
pydevOccurrenceIndicationColor=106,105,146
occurrenceIndicationColor=97,97,97
Also, if you're looking for a specific value that you can find in the UI but not in a file you can change it in Eclipse to a known RGB value and grep for that in the .settings dir.