Can I enable bracket matching in nano?
else if( d && ( (d <= b && d <= s) || (!b && !s) ) smallest = d
Consider this piece of code of C++. Can we have bracket matching (highlighting opening bracket when cursor on closing bracket & vice versa)?
Solution 1:
set brackets ""')>]}"
set matchbrackets "(<[{)>]}"
Update ~/.nanorc
(or perhaps /etc/nanorc
) with these lines and it works like a charm.
When on any bracket press Meta] (often this will be Alt]) and there you go to the other paired bracket.