Custom code style for file type (need tab character)

I'm using Makefile to build my project. It is impossible to edit it now because all tab characters are replaced by spaces.
I have tried to make custom file type (*.mk) but I can't create custom code with tav character support style for it, so how can edit files which need tab character support?

0

Please try setting 'Use tab character' on in default indent options (Settings/Code Style) - does it help?

0

Yes, it works for "General" Code style, but seems that it affects all text files.
I would like to enable tab character only for *.mk files

0

Yes, 'General' code style affects all file types except for ones that have own code style settings.
To add a code style for some custom language, you have to develop your own language plugin. See http://confluence.jetbrains.com/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA#DevelopingCustomLanguagePluginsforIntelliJIDEA-CodeStyleSettings, http://devnet.jetbrains.com/message/5451694#5451694

0

I think that it is very hard to develop plugin just for tab character in *.mk support. May be exists other way?

1

Nothing I'm aware of:(


0

Is it possible to use external editor, for example, "Linux kate" inside phpstorm tab panel (not in new window)?

0

i.e. to embed some arbitrary editor in the IDE frame? No, it's not possible

0

请先登录再写评论。