• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CTRL + SHIFT + F not working

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I configured a custom template for formatting braces where new line was selected for all items. I clicked the apply button. I have existing code with braces which are on the same line. When I try CTRL + SHIFT + F nothing happens, I do not get a new line for the braces. I am running Eclipse 3.3.2. How can I get existing code formatted (with respect to new line for braces and braces aligned and indented correctly?
 
John Davis
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read the style guide but did not find any text which could help me to format EXISTING CODE with braces on the same line yielding code with braces on a new line properly indented and aligned. CTRL + SHIFT + F does nothing for me currently.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the project properties and make sure that the project does not have an explicit format stylesheet set.

Also, there is a formatting option to format only added/changed code, make sure that is not set.

Also, try using the menu to reformat (just in case someone changed the keyboard shortcut).
 
reply
    Bookmark Topic Watch Topic
  • New Topic