By default, Pycharm does not highlight Syntax when there is a string after Dockerfile like Dockerfile.production. To highlight this, select Pycharm> Preferences> Editor> File Types, select Dockerfile, and set "Register patterns" to "Dockerfile.production" as follows:
"Dockerfile.production" is now highlighted.
I would like to add "Dockerfile.prod" and "Dockerfile.Nanchara", but it is troublesome to enter them all individually, so if you enter "Dockerfile. *", Syntax highlighting for other Dockerfiles. You will also be able to do it.
Recommended Posts