Category: VS Code

  • Fix for prettier splitting HTML tags in VSCode

    Fix for prettier splitting HTML tags in VSCode

    🎉🎉🎉 ng on an Angular application can be a joyous experience, but when prettier starts splitting your HTML tags, it can quickly turn into a nightmare 😱. Fear not, for I have found a solution that will have you dancing 💃 in your chair with joy. After trying a few different settings, it turned out…

  • Multiple selections (multi cursor) in Visual Studio 2022 and VS Code

    Multiple selections (multi cursor) in Visual Studio 2022 and VS Code

    For a while I thought it was only available in vs code until I found this stackoverflow post! 🥳

  • How to add bearer token authentication to NSwag api.

    NSwag is a game changer for working with Angular and Net Core, you write your endpoint code, and swashbuckler generates your swagger docs. You can find more info on swashbuckler here: https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-6.0&tabs=visual-studio Where NSwag helps, is that it looks at the swagger document and generates all the typescript code, which includes the models, the functions…

  • We Hire It 🏰

    For a long time I have noticed that the hiring is becoming more and more popular. Car hire, holiday house hire, etc. I have run a small hire business in the past hiring jumping castles, ride on mowers, scaffolds, and things I felt people might find useful. I knew there was a lot to manage…

  • #include guards in C++

    I was having issues with an ESP32 project. I needed an instance of which was sitting in <wifisetupmanager.h> I needed this in two files – <setup.h> and <endpoints.h>. Ok no big deal, lets add it 👍… not so fast!… When I added: In both files, I received the following error: src/wifisetupmanager.h:9:29: error: redefinition of ‘AsyncWiFiManager…

  • Debugging Angular with VS Code and Firefox

    Everyone has their own preference when it comes to debugging. Here is what has worked well for me! This example is based on a new angular application. If you would like to know how to get started with angular – head over here: https://code.visualstudio.com/docs/nodejs/angular-tutorial If you would like to clone the repo and give it…