

Adding configuration for individual editors and using EditorConfig allows you to simplify and speed up the entire process. The perfect solution that allows you to configure each editor after cloning a repository does not exist. Įach section for a given file name may have several options that are responsible for the file formatting. However, we do not need to know the author or the whole name of the extension, after pressing the hotkey responsible for autocomplete, a list of possible inputs will appear. The entry in the list consists of the author's name and the extension separated by a period, for example: esbenp.prettier-vscode. The file consists of two lists: recommendations and unwantedRecommendations, the purpose of these two lists is what the names suggest. A file extensions.json should be created in the.Search for “Configure recommended extensions” and confirm selection.Open your project in VSC and open the command palette:.The file can be created via the interface, but the file can only be edited manually. There are two sections in the extensions.json file, one for recommended extensions and the other for listing unwanted extensions. PS VSCode suggests what can be configured with autocomplete. "faultFormatter": "esbenp.prettier-vscode" It is a JSON file, so for the configuration to be correct, you need to stick to this notation, example of the file:.



Why does it allow cleaner commits? It's simple - many projects use different formatters, such as Prettier. It also allows for cleaner commits to the repository. Appropriate configuration of the project and editor speeds up the work and the implementation of new people in the team. Why is configuration synchronization important?įor some, it is obvious, and for others, the need to synchronize the configuration may be surprising. I am a Visual Studio Code user and I mostly work on React projects, so the post will be from a React project perspective but is applicable to all projects.
