ReSharper 2025.3 Help

Code inspection: Move the shebang directive to the beginning of the file

This inspection identifies cases where a shebang (#!) directive is not at the very beginning of the file. The directive is used to specify the interpreter that should execute the script. For it to be correctly recognized by the runtime or shell, the shebang directive must appear as the very first token in the file, with no preceding spaces or other content.

15 July 2025