I think, I have found out what happens here.
UEStudio has several features UltraEdit does not have to help a user to write code faster. Those features can be configured at Advanced - Configuration - IDE - IntelliTips
There is Auto-complete
which is also available with less features in UltraEdit. I'm not sure, but I think this feature uses fixed [A-Za-z0-9_] as character set definition to find symbols. _POST
is a symbol for the auto-complete feature.
And there is Quick Tips
supported only by UEStudio. I'm not sure, but I think this feature uses the word delimiters settings in syntax highlighting wordfiles to find "words" found in file.
The Quick Tips
feature is enabled with Scan back "x" chars
with a value greater 0 and displays above currently typed $_P
as tooltip the string $_POST
found in the PHP code line above for being completed with key TAB or key ENTER. Therefore hitting one of those 2 keys after typing $_P
results in getting $_POST
But if additionally Show symbol list automatically
configuration dialog is also enabled, the auto-complete list window appears after typing $_P
depending on configured number of characters. But displayed in this list window is only _POST
, the symbol name without $
. Hitting now key TAB or ENTER results in replacing $_PO
by just _POST
. I suppose you hit key ENTER to insert a new line.
You have several options to avoid this unwanted behavior:
- Uncheck auto-complete setting Show symbol list automatically. Then the auto-completion list window must be opened by explicitly hitting key combination Ctrl+Space.
- Or if automatic opening of auto-completion list window is nevertheless wanted, uncheck auto-complete setting Complete with Enter to insert suggested symbol from auto-completion list only with key TAB, but never with key ENTER or RETURN. This avoids inserting a symbol for the list on hitting ENTER or RETURN to make a line break.
- And last using auto-complete setting Auto-complete one-symbol list should not be enabled on writing PHP code to avoid the wrong completion as discussed here, except auto-completion list window is not automatically shown.
The Quick Tips
feature becomes active for $_P
with first option taken to not automatically show the auto-completion list window.
Hint: I suppose that many users disable those IntelliTips features on first occurrence of an unwanted behavior. But they make writing code with longer and therefore more meaningful symbols very efficient after having learned to make use of them. There is no real need anymore to use variables and functions with names consisting only of 1 to 4 letters. Longer symbol names are no problem on experienced use of those features.