How does "Autoclose braces" work in Notepad++?

8

3

enter image description here

When I enable the option and enter an opening bracket (or brace) it does not auto-close itself. Does auto-close have a different meaning than what I am understanding?

Stat-R

Posted 2012-03-25T21:33:35.637

Reputation: 1 240

For me, this works with JavaScript. So the question was already a good enough answer for me, when I wanted to find out how to do this with NPP :) – hyde – 2013-09-27T06:45:02.257

Answers

3

The xbrackets lite plugin for notepad++ does bracket and brace closing for all (I guess) types of files.

Stat-R

Posted 2012-03-25T21:33:35.637

Reputation: 1 240

0

If you are editing a new file or one with an unrecognized file extension, have you set a language (i.e. Menu > Language)? The TextFX option for auto-closing braces requires a language to be set (e.g. C, Java, PHP, etc).

iglvzx

Posted 2012-03-25T21:33:35.637

Reputation: 21 611

I already set the language (.R) and NP++ has the syntax highlighted. Yet, I do not find the braces closing automatically when I type '('. – Stat-R – 2012-03-26T17:16:34.237

I could not find any documentation on the feature, but it appears that some languages are not supported. – iglvzx – 2012-03-26T18:23:38.093