Remove Parameters from Functions List?
-
Where is the option to remove the parameters from the functions list?
-
Settings > Preferences > Auto-Completion > Function parameters hint on input
-
@PeterJones Nope, that’s not it.
Any other suggestions please?
-
@jabcreations said in Remove Parameters from Functions List?:
Any other suggestions please?
My suggestion is that you need to give more details of your problem.I tried to guess what you wanted and gave you a solution based on that guess; you didn’t seem to want the solution I provided. It should have been obvious to you at that point that it meant I didn’t understand what you wanted. Instead of explaining why my solution was not sufficient, and/or trying to better explain what you really do want, you just informed me that I was wrong, and then requested more suggestions.Without more details (and probably screenshots with what you don’t like highlighted, and maybe even manual screenshot edits to show what you really would like), it is impossible for me to give you more suggestions. -
@PeterJones View ⇨ Function List.
Apparently this is only effecting PHP files, not JavaScript.
So:
<?php
function example($a) {}
?>Appears as:
example($a)
…in the functions list with the extra $a.
-
Sorry, my bad: I misread, and thought you were talking about auto-completion parameter hints. Now I see you actually meant Function List.
For PHP, it’s actually really easy, because the
%ProgramFiles%\Notepad++\functionList\PHP.xml
comes with the right regex already there, but in comments.Original:
<nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*\s*\((?:[^/{]|/(?![*/]))*" /> <!-- comment out the following node to display the function with its parameters --> <!-- <nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*" /> -->
edit it to say,
<nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*\s*\((?:[^/{]|/(?![*/]))*" /> <!-- comment out the following node to display the function with its parameters --> <nameExpr expr="(?:\x26\s*)?[A-Za-z_\x7F-\xFF][\w\x7F-\xFF]*" />
then save and exit notepad++. when you restart Notepad++, it will no longer show the function parameters in the function list
Sorry again for the misunderstanding.
-
@jabcreations said in Remove Parameters from Functions List?:
Apparently this is only effecting PHP files, not JavaScript.
That’s because every filetype has its own Function List definition – so whowever submitted the javascript definition thought that parameters shouldn’t be included, and whoever submitted the PHP definition thought that parameters should be included (but understood that not everyone would like that, so tried to make it easy for people to customize it by including a comment on how to remove them… quite helpful).
-
@jabcreations wrote in “Diable Ctrl+D duplicate line shortcut” (in combination with a reply to an unrelated conversation), said,
That worked, thank you very much. I’ve had some very minimal experience with these files in the past though a while ago and not enough to claim to be familiar.
Glad it worked for you.
-
@PeterJones I remember that there are dedicated files per language.
Also, did my last post get deleted? This thread is resolved, I was just making sure that I wasn’t one of those people who asks a question and then says “that worked thanks” but did not clarify what I actually did. Which was to uncomment that last instance of the <nameExpr element in the C:…Notepad++\functionList\php.xml file.
-
@jabcreations said in Remove Parameters from Functions List?:
, did my last post get deleted
You actually put two replies in one post in this other thread. I just quoted from that (with the link) here, so people in this topic could see it was resolved