Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » CTRL + SHIFT + F isn't working(Bug in Eclipse?)
icon9.gif  CTRL + SHIFT + F isn't working [message #1639598] Fri, 27 February 2015 13:29 Go to next message
Eclipse UserFriend
Mad

Hey guys,

When I want to format my code, with CTRL + SHIFT + F, it isn't working... I don't know Why.
I went to Preferences > Java > Formatter and changed the profiles, I also applied another profile made by me, and it never works..

I also went to see which shortcut keys Eclipse had, and there's CTRL + SHIFT + F to Format things.... I don't know what is happening...

My Eclipse version is Luna Service Release 2 (4.4.2) on Windows 8.1.

Hoping for a response,
Pedro Pais
Re: CTRL + SHIFT + F isn't working [message #1647616 is a reply to message #1639598] Tue, 03 March 2015 09:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi Pedro. Sorry you're having trouble. Ctrl+Shift+F does indeed work on my system.

When you invoke Ctrl+Shift+F, is the editor window active? I.e. are you editing your code, and then Ctrl+Shift+F? If not, it won't work.

Do you have some portion of your code highlighted? If so, Ctrl+Shift+F will only format the highlighted portion. That may not be what you want.

If you want the entire file formatted, either make sure nothing is highlighted, or everything.

Hope that helps.
Re: CTRL + SHIFT + F isn't working [message #1668561 is a reply to message #1647616] Thu, 12 March 2015 10:48 Go to previous messageGo to next message
Eclipse UserFriend
I have the same as you (Luna 4.4.2 on Windows 8.1) and Ctrl+Shift+F works fine for me. Does using the menu instead of the keyboard shortcut make a difference (menu Source / Format) ?
The only cases where Ctrl+Shift+F (or menu Source / Format) does nothing at all is when the class I'm trying to format is already formatted so the formatter has no changes to make; in that case I actually don't see any way to tell that the command has been executed.
Re: CTRL + SHIFT + F isn't working [message #1670978 is a reply to message #1639598] Fri, 13 March 2015 08:10 Go to previous message
Eclipse UserFriend
It doesn't matter which version or OS you're using it's happened on both my PC and brother's MAC.. Both have different version of Eclipse.
Previous Topic:TextViewer for Java Code
Next Topic:Eclipse Luna/Kepler: cannot debug swing events
Goto Forum:
  


Current Time: Sat Sep 06 20:00:35 EDT 2025

Powered by FUDForum. Page generated in 0.14340 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top