Atom plugin that folds C++ template definitions to make them more readable.
C++ template definitions are wordy. This plugin finds all templates in your source file and folds their parameter lists making some simplifications. For example:
Here folding hides typename
keywords.
Simplification rules are very simple:
typename
and class
keywords are removed; if parameter has no name, _
symbol is displayed;typename
and class
keywords are removed; if parameter has no name, _
symbol is displayed.The example below demonstates most of these cases:
You can apply foldings manually or turn on auto folding on file open (from package settings).
Just install the package from Atom (Edit > Prederences > Install > [type 'atom-cpp-template-foldings']).
Soft Wrap
option is enabled in Atom. However, if you also enable Soft Wrap At Preferred Line Length
, everything will work.Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.