GorvGoyl / Shortcut-Menu-Bar-VSCode-Extension

Add handy buttons like beautify, show opened files, save, toggle terminal, etc to the editor menu bar in VSCode. You can also create your own buttons with custom commands. VSCode Marketplace link: https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar
https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar
GNU General Public License v3.0
221 stars 44 forks source link

Help: Is it possible define format rule for specific language for the Beautify button? #81

Open lpdx opened 2 years ago

lpdx commented 2 years ago

The tool is great but I'd like to know if I can configure a rule for the Beautify. I have a C code as shown in code snnipet 1 formated for readability.

code snippet 1:

snprintf(tmp, 100, ",%u,%u,%u,%u", x.data[i].a
                  , x.data[i].b
                  , x.data[i].c
                  , x.data[i].d);

But when I press the beautify button it is edited as one line:

code snippet 2:

snprintf(tmp, 100, ",%u,%u,%u,%u", x.data[i].a, x.data[i].b, x.data[i].c, x.data[i].d);

Is there some configuration that allow me to keep the multi-line format like code snippet 1?