Win a copy of Python Continuous Integration and Delivery this week in the Python 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Artistic Style: Autoformating code using a text editor  RSS feed

 
Ranch Hand
Posts: 392
8
BSD Debian Open BSD
  • Mark post as helpful
  • send pies
  • 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

  •  
    Always look on the bright side of life. At least this ad is really tiny:
    Become a Java guru with IntelliJ IDEA
    https://www.jetbrains.com/idea/
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!