After writing a post about the GitHub Copilot code review feature in Visual Studio last week, I got a question if the same functionality was available in VSCode. Hence this post to show you how to use this feature in VSCode as well. Before you can use this feature, make sure that Editor preview features are enabled in your GitHub settings: Review changes Reviewing your changes works quite similar to Visual Studio: Go to the Source Control tab in VSCode. Hover over Source Control in the sidebar, and then click on the Copilot code review – Uncommited Changes button: Copilot will now review your changes (this can taken some time so be patient). When it has comments, they are shown inline in the file: When no remarks are found during review, you get a pop up message. You can also see the comments in the Problems tab: Remark: Although this is a nice new feature, I had some mixed results when applying it. Sometimes it gave very good feedback, but o...
Upgrading an (old) .NET application to .NET core turned into a learning experience when we got the following error message after the upgrade was done: System.NotSupportedException : No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. TLDR; The application was using an older Windows-1252 text encoding causing the error above when trying to use this in .NET Core which doesn’t support this encoding out-of-the-box. Introduction to Text Encodings Text encoding is a method used to convert text data into a format that can be easily processed by computers. Computers inherently understand numbers, not characters, so text encoding maps characters to numerical values. This process ensures that text data can be stored, transmitted, and interpreted correctly across different systems and platforms. There are various text encodings, each designed to support different sets of characters. Some c...