A useful VS Code extension for OpenFOAM dictionaries has been developed by Zhikui Guo and can be installed from here. It adds color highlighting to the sections of an OpenFOAM dictionary:
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks. Alberto Passalacqua is not associated to OpenCFD Ltd.