Files¶
Editorconfig (.editorconfig
)¶
The .editorconfig
file is used to define and maintain consistent coding styles between different editors and IDEs.
User dictionaries (dictionary.dic
)¶
User dictionaries are files that contain a list of words that are used in the application. This allows us to enable spell-checking in IDEs without having many false positives.
We typically include an alphabetically sorted wordlist file named dictionary.dic
. This file is stored in the root of the repository.
Adding the custom dictionary to PhpStorm:
- Settings → Editor → Natural Languages → Spelling
- Add
dictionary.dic
to the list of custom dictionaries
To sort the dictionary file alphabetically, use the following command:
sort -f -o dictionary.dic dictionary.dic