Research VS Code settings export/import #79
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There should be a way to export/import VS Code settings to allow for coding conventions to be "automatically" followed for each language. This could also be solved with VS Code Extensions for each language, might be simpler.
Related Issue: #51
One can add specific settings for different languages by going to settings in vscode and searching @lang:{language}, or simply edit general settings. The settings will be written in settings.json that exist here:
and to share extensions, one can copy the extension folder located here (or making a list somewhere, like the wiki, with extensions to get):
For less work (what Andras mentioned);
Looks really good, Prettier seems to be the most used. Could you look into a smart way to share Prettier configs?
There exists file that one can add to a project; https://prettier.io/docs/configuration.html that changes the way it is formatted. From what I have found it works on all levels (not only in root). Editorconfig also works with prettier and could also be used but then it has to be read from root.
Also a useful vs setting I found during research is "format on save" that formats the code when saving the file.
Look good. The research covers both VS Code settngs and extensions. I agree that using project-level configuration is better than relying on exporting/importing personal setting. Prettier seems like the best option for sharing formatting rules across the team, and EditorConfig also looks useful as a complement. Maby the only thing missing is a clearer final recommendation for what we actually want to use in the project for exemple, adding a prettier config file yo the repositry.
After having talked with the other team leaders we have decided to use Prettier for all languages except C#, which is not inherently supported by prettier, that will use MS-dot.net default. Well done!