Posts

Showing posts with the label vscode

My Year with AI in the Pacific - ChatGPT, Codeium, Claude AI, Bing AI, Gemini AI

Image
TL; DR AI has significantly impacted my business. I have leveraged it to be more productive and more knowledgeable on different aspects of my work. From learning different languages to researching different approaches to a problem. It’s not perfect, but it’s a tool that needs to be used by every developer. It’s been over a year since I started experimenting with AI. I've been using it in the following ways: Content creation - You can ask it to generate an outline for a presentation, workshop, or blog post. I've also used it draft technical reports and systems specifications. Ideation - Exploring ideas and flushing them out. Coding – From generating code, to code review, generating documentation to writing tests. If you provide the appropriate context, it does a great job. Troubleshooting - Copy and paste errors into the AI to provide an explanation of potential causes and fixes. Research - When you want to find out more a...

Creating boilerplate snippets for VS Code

Image
Tired of looking at a blank page when creating a new .vue file? VS Code snippets to the rescue!! Actually it supports more than us Vue. You can create snippets for any language but this article will focus on Vue (the template is for Vue 3 Composition API ). There is a bit of boiler plate when creating a Vue component and I didn't want to type it out each time. One solution is to use VS Code snippets. It has its own format but you wont have to worry about because there is a fantastic snippet generator by Pawel Grzybek  to generate it for us. Here is an example I created. Once you have your snippet you want to add it to VS Code.  On Windows, hit CTRL + ALT + P, then  Locate "Configure User Snippets".  Choose Vue.json Copy the snippet you generated between the { } curly brackets (see vue.json snippet below) Now you can  Create a new file with a .vue extension Type vue3-default and press tab 🄳 PRESTO!! You have boiler plate Now have a coffee with your saved time ...