Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » can't set spaces to tabs in Javascript
can't set spaces to tabs in Javascript [message #661005] Tue, 22 March 2011 12:22 Go to next message
David Hollingshead is currently offline David Hollingshead
Messages: 31
Registered: January 2010
Member
Every time I hit a new line in JavaScript that auto-indents, Eclipse is putting spaces in for the indent instead of a tab. I've already gone into Window > Preferences > JavaScript > Code Style > Formatter and the tab policy was already set to "Tabs Only". How do I fix this?

I'm using Eclipse for PHP Developers

Version: Helios Service Release 2
Build id: 20110218-0911
Re: can't set spaces to tabs in Javascript [message #661297 is a reply to message #661005] Wed, 23 March 2011 22:15 Go to previous message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 344
Registered: July 2009
Location: Japan
Senior Member
Do you mean Javascript code block in php script, using PHP Editor?
There might be leading/heading spaces (indented by spaces but not tab) in your code, I guess. Strip them or replace them by tabs.
Previous Topic:Im new to eclipse
Next Topic:xdebug sometimes slow and path mapping
Goto Forum:
  


Current Time: Fri Aug 01 12:04:42 EDT 2014

Powered by FUDForum. Page generated in 0.09934 seconds