You can put this in a comment in the source file:
ex: set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
The syntax of the comment depends on the type of source file.
For C / C ++ / Java, this will be:
// ex: set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
For JSP it will be:
<%-- ex: set softtabstop=4 shiftwidth=4 tabstop=4 expandtab: --%>
This works if it is placed at the beginning of the source file, but I'm not sure if it will be placed at the end of it.
This will not work for emacs. For emacs, there may be another way to achieve the same.
source share