Set tab size for specific files

Is there any way to have certain specific files use a different tab size than the standard one for its file type?

I sometimes need to edit specific text files to match another system, which shows text using different tab size and line width than every other file I work with. It'd be great to somehow flag those specific files in IDEA so they use different tab size and right margin, to match that other environment. I could give them a different extension (they're really just edit buffers, no use on the file system outside of that), but far as I can see, I can't create new languages under Settings > Code Style. I suppose I could pick a file type I don't use much, but then normal typing will get flagged as full of syntax errors for that language.

Thanks for any useful ideas here?

Please sign in to leave a comment.