PhpStorm: fill-in default parameter values with keystroke - phpstorm

Is there a shortcut for PhpStorm (or other JetBrains IDE, they're likely to be the same) that will automagically fill in default parameter values for method calls?
IE, I'm typing in:
$form->generateSelectBox("weekly_snapshot_id", "Weekly snapshot", ...loads of default values here..., "value I actually wanted to set");
and I'd actually just like to type:
$form->generateSelectBox("weekly_snapshot_id", "Weekly snapshot");
put the cursor inside the argument list and hit CTRL + WHATEVS and get ...loads of default values here... automagically completed for me.
Haven't found anything in the dox, google or previous questions that might do this, some tantalising hints about IntelliJ plugins that did this out there but nothing for PhpStorm specifically.
Screenshot as requested: (I select 'params' not cust_id)

You'll be able to do that via Ctrl+Space suggestion list starting PhpStorm version 2019.2: https://youtrack.jetbrains.com/issue/WI-45683

Related

UE5 - Property Metadata “EditCondition” & “EditConditionHides” Not Working When Added Via IDetailCustomization

I’ve written a small editor plugin that lets you directly edit EditCondition & EditConditionHides property metadata entries right from the editor. At first glance this seems to working - manually checking the properties metadata array, I can see the values updating and saving as expected.
However, the editor doesn’t seem to be evaluating the edit condition when values change. For example, using my custom editor to set the following condition:
Gives me the following results when changing values in the editor (in this case an editor for a custom data asset):
Notice the second example, the “Duration” field should now be enabled an editable, but it stays disabled. Am I missing something here? From what I understand adding an EditCondition to the properties metadata (i.e. meta=(EditCondition="Type == E_BuffType::Duration")) should be enough get the editor to update the way I’m expecting.

maple code output does not display on the screen

I've just downloaded the Maple 2020 trial version and I have zero experience on Maple programming. My problem is: when I do simple calculations such as 3+5 or 2*3, the result displays on the screen but, for other functions such as
factor(x^2+2x+1);
or assigning variables can't be done:
n:= 5;
m:=7;
m+n;
I do not see any results on the display screen after the enter.
Where am I doing wrong?
It seems like, I need to change some configurations of the Maple. After doing some search online, I found these suggestions in a web site. I have applied the following steps and my problem is solved: (Remember to apply globally not for the session.)
Open a new blank worksheet
On the toolbar, access Tools->Options.
Select the 'Display' tab
Ensure that the first entry is set to 'Maple Notation', and the second entry is set to '2-D Math Notation'
Click 'Apply to session' at the bottom left
On the toolbar, access Tools->Options again
Select the 'Interface' tab
Ensure that the entry 'Default format for new worksheet' is set to 'Worksheet'
Click 'Apply to session' at the bottom left
Now open a new worksheet in the same session. There should be a prompt '>'.
At the prompt, type 'version();' without the single quotes, but with the trailing semi-colon. This ought to return details of the precise Maple version you are running. If it returns something like
User Interface: 1133417
Kernel: 1133417
Library: 1133417
(precise numbers may be different), then you ought to be good to go - so try something simple like 1+1; at the next command prompt, (remember the semicolon).

PhpStorm keyboard multiple keystrokes

Is it possible to create PhpStorm shortcut through double keystrokes? For example by pressing f character twice.
create every arbitrary shortcut is possible via autoHotKey . for my case create a comma.ahk script with the code below:
:*:ff::
send, {end},{enter}
Return
then run the script. that enough to make you free from going to end of line ,press the comma key and at last going to a new line!

Sublime search specfic keywords as function withn the same file

In my project file extension is .ttcn and all the function in that file start with testcase name_of_the_function.
Is there any Sublime plugin exist that can list all the function that is start with keyword testcase followed by test case name?
FYI, most of the common programming languages sublime list all the functions name with shortcut ctrl'r. Thanks in advance for any suggestion or recommendation !
You can use the Find in Files functionality (Find -> Find in Files...). In the Find: field, make sure the first button (Regex) is selected, as well as the last two (Context and Use Buffer), then enter ^testcase. Add the directory you'd like to search in the Where: field, and make sure the Replace: field is empty. Hit the Find button, and a new tab will open showing all lines that begin with testcase.

Show Vim omnicomplete on certain characters instead of Ctrl-X Ctrl-O?

In Vim 7, Ctrl-X Ctrl-O shows a list of possible values but I find this sequence of keys to be too long when I frequently use the autocomplete feature. For instance, in an HTML file, I'd like to see the list automatically popup after I type a < followed by one or two letters. In a CSS file, I'd like to see the list after I hit the ":" key. Is there a way to set this up?
To activate the omnicompletion on typing a ":" you can use
the following mapping.
imap : :<c-x><c-o>
The disadvantage is that each time you press ":" omnicompletion will
be activated, even when typing ":" in comments or in any other context
in which you do not want omnicompletion.
I have mapped ctrl-space to active omnicompletion:
imap <c-space> <c-x><c-o>
This gives me the choice to activate omni whenever I need it.
Another alternative that I found easier is just to press tab two times when you want autocomplete, and one time for regular tab.
Add the following line to your ~/.vimrc
imap <tab><tab> <c-x><c-o>