If not, install that first:Įnabling format on save is handled by the editor. Omnisharp is the language server that provides IDE-like features to editors, like IntelliSense, semantic syntax highlighting, and formatting! I assume you, like 9 million developers before you, are already using Omnisharp through the official C# extension for Visual Studio Code. So whatever mess you make in your editor gets fixed as soon as you save. When working in Go the common approach is to have your editor run go fmt on save, which brings code formatting in line with the Go standard (with hard tabs for indent, by the way!). The grass is always greener on the Go side Method 1: Configuring global user settings You can access the global user settings via the command pallet. Likewise, the indentation options available from the status bar menu weren’t helpful at all. In this guide, I will show you three ways to indent your code in visual studio code automatically. This would still lead to mixed results and files that were reindented randomly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |