Skip to main content


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 16:22 Go to next message
Dave H is currently offline Dave HFriend
Messages: 43
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] Thu, 24 March 2011 02:15 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
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 Apr 19 18:10:58 GMT 2024

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

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

Back to the top