-
Notifications
You must be signed in to change notification settings - Fork 214
Auto Completion in Notepad4
Open menu "Settings" -> "Auto Completion Settings".
- Auto move caret to next line with same indentation after pressing Enter. If current line ends with
{
,[
,(
or:
or it starts with keywords that start a code block (such asif
andfunction
in many languages), caret in next line is indented one level more than current line, keywords that used to end the code block maybe added in third line in later case. - Auto continue next line for document comment block starts with
/**
or/*!
.
- Auto close none void tag's end tag after typing start tag's
>
. e.g. after type > in body tag (<body>
), the end tag</body>
will be added after>
. In some languages, this only has effects in comment and string. - Auto insert space after typing , when appropriate. This needs improvements, see TODO below.
- Parentheses, auto insert
)
after typing ( when appropriate. - Braces, auto insert
}
after typing { when appropriate. - Square brackets, auto insert
]
after typing [ when appropriate. - Angle brackets, auto insert
>
after typing <, mostly when<
and>
are used in generics / template in C++, C#, Java, etc. - Double quotes, auto insert
"
after typing " when"
and"
are used to quote string, bytes, etc. - Single quotes, auto insert
'
after typing ' when'
and'
are used to quote string, bytes, etc. This needs improvements, see TODO below. - Backticks, auto insert
`
after typing ` when appropriate. - Enclose current selection by typing corresponding punctuation, see following table.
key | result | key | result | key | result |
---|---|---|---|---|---|
( | (selection) |
{ | {selection} |
[ | [selection] |
' | 'selection' |
" | "selection" |
` | `selection` |
Ctrl + 3 | '''selection''' |
Ctrl + 6 | """selection""" |
Ctrl + 9 | ```selection``` |
Auto show word list that matches current input, not every word bundled with current scheme (keywords, types, functions, etc.) is shown, assembler instructions and registers in C/C++ and D are ignored.
When "Minimum length for number" is zero, numbers are ignored.
When "Scanning words in current document" is checked, words in current document will be scanned to find matching words. The default scanning timeout is 500 ms.
If word foo
is followed by left parenthesis and foo
is not a type, and not inside preprocessor line, then foo()
will be listed in the auto-completion list instead of foo
.
Modern IME in native mode (Chinese, Japanese, Korean, etc.) may let user select English words, when this option is enabled, the selected English word will NOT trigger auto-completion.
Check "Settings" -> "Auto Completion Ignore Case".
Only list relevant words after:
-
#:
#preprocessor
,#directive
,#macro
, etc. -
$ or $^:
$variable
,$task
,$^variable
, etc. -
@:
@annotation
,@attribute
,@directive
,@decorator
,@command
,@tag
,@macro
,@metadata
,@variable
, etc. -
< or </:
<tag>
and</tag>
. -
\, \^, \::
\tag
,\command
,\^command
,\:emoji
, etc. - Other punctuation when word after them has special meaning in current language.
Convert LaTeX-like abbreviations into Unicode characters on pressing Tab, e.g., \sum
to ∑, and \:smile:
to 😄 when Notepad4 is built with NP2_ENABLE_LATEX_LIKE_EMOJI_INPUT
set to 1.
See https://docs.julialang.org/en/v1/manual/unicode-input/ and https://github.com/iamcal/emoji-data for all supported LaTeX and emoji sequences.
- Improve auto insertion space after comma when comma is used as digit group sign.
- Improve auto insertion for single quote when it's used as apostrophe (right single quotation mark).
- Use contains method to match input other than starts with method, this feature is found in many modern IDEs.
- Support external API files like SciTE and many other editors.
- Use approximate string match method, the is future is found in many modern powerful IDEs.