Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Artistic Style: Autoformating code using a text editor

Ranch Hand
Posts: 393
Open BSD BSD Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In other words how obtain e.g. in Geany(I use it in a Linux box but exist for all known platforms; astyle as well ) an analogous effect  as in Eclipse's  Ctrl+Shift+F (invoke the Auto Formatter)

I was advised from a colleague about Artistic Style  a nice small Auto-formatter for the C, C++, C++/CLI, Objective‑C, C# and Java programming languages and I can confirm that do his work as it should  

The steps to go operational are pretty straightforward:
  • Download the newest version, currently is 3.1
  • Install Artistic Style -> follow the install doc (/astyle/doc/install.html) in the download (make then make install)
  • Add a custom command to Geany:  bash -c "astyle --indent-classes -Y"
  • To customize this thake a glance at the Artistic Style documentation
  • Select an text area and press Ctrl+1 to run the first Geany custom command

      Bookmark Topic Watch Topic
    • New Topic