Improve docs on how to enable vscode extension
JSBmanD opened this issue · comments
Environments
- IDE Version: 1.87.2
- Extension Version: v1.7.2
- CSharpier Version: 0.28.2
will NOT be the same as the extension version - Operating System: MacOS
- .csharpierrc Settings: Where to find?
- .editorconfig Settings: No for project
Log Output
No
Steps to reproduce
- Install extension
- Set csharpier as default formatter
Expected behavior
File formatted
Actual behavior
No logs, no format
dotnet csharpier . works when I call it in folder with files
By no logs, do you mean that the output window for CSharpier is empty? Even without turning on debug logging it should contain ["INFO" - 8:54:38 AM] Initializing csharpier-vscode
when it start up, which is when you first open a c# file I believe.
@belav i made it work by adding this to settings.json in project. But without it - it won't format my project for some reason. Can you add this to docs please? I needed to search in issues to find this solution
"csharpier.enableDebugLogs": true,
"[csharp]": {
"editor.defaultFormatter": "csharpier.csharpier-vscode",
"editor.formatOnSave": true,
}
My instance of vscode has an empty settings file, and I can right click, format with csharpier, and it works. It also initializes csharpier as expected. The doc already mentions setting it as the default formatter and neither debug logs or formatOnSave are required. I'm guessing there was something else going on with your IDE.
@belav maybe you need any logs or configs to see the problem? I can provide anything