Tabs vs. Spaces problems in comments

已回答

Working with Javascript, I have two problems:

1. When I've used tabs to indent some text in a comment and I hit return to recreate a new line, it de-indents it one tab and then adds a trailing tab character after my cursor. How can I turn this off?

2. On the Tabs and Indents tab of the Code Style preferences window, I've chosen to use Tabs. However, when I format my code, it still replaces my tabs with spaces in all of my comments. How can I setup code formatting to use tabs everywhere?

Can't seem to find the setting to change these things. 

Thanks!

 

0

Hello Peter,

Seems first issue is caused by "Smart Tabs" option. Please report an issue on YouTrack: http://youtrack.jetbrains.com/issues/WEB

Second issue is already reported: https://youtrack.jetbrains.com/issue/WEB-15618

 

0

请先登录再写评论。