vscode

A 17-post collection


Keep Calm, and Keep Coding with Cosmos and Node.js

Coding with the Cosmos DB SDK feels good. Yes, I said feels good. Yeah, yeah … it is fast to install, fast to learn and fast to execute. But most of all it feels good. Think about when you are coding and everything is just flowing for you. It feels great to be in a rhythm and get everything out of your head and into the code and working fluidly! A key ingredient to this is when the APIs we are coding are intuitive and easy to follow. This is where the Cosmos DB SDK shines brightest. Let's see why. I Want to Have Fun with the Code Now Cosmos DB SDK is awesome, feels great, and if you want to...


Everything You Need for Coding with Node and Cosmos DB in 60 Seconds-ish

I've been known to share that my development experience with Cosmos DB's Node SDK and the VS Code extension are fantastic and feel great. I want you to experience it too. But I expect you are in a time crunch. In which case, this post is for you. I've collected the five key links you need to have a great experience with Cosmos DB using Node. 1 - It's Intuitive How are they intuitive? The functions and properties just make sense. Get my container. Get its items. Read them all. Return them as an array. When things make sense, it takes less time to figure it out. Please check out my 4-minute post on why I feel good when coding...


Debug Your Node.js App in 60 Seconds

Setting up debugging can be a chore. It can make you feel like console.log isn't so bad after all. Right? While I enjoy a good console.log as much as anyone, I'd much rather debug with zero configuration of my app. Wouldn't you? Visual Studio Code (aka VS Code) has changed the game on Node.js debugging. There is a feature called Node: Auto Attach (you can learn more about it here in the docs). Or keep reading - this will only take a minute. When you enable this feature, you can run your node app from a command line, from an npm script, or from a tool that runs one of those. Just make sure you add the...


Associate File Types in VS Code

I love a good editor. All of the great tooling, intellisense, auto-complete and all of the goodness and efficiency. Intelligent tooling is a huge part of what makes our day fun. Don't you agree? For example, when I open Visual Studio Code (aka VS Code) and it recognizes the file type I am editing, it lights up all of the relevant tooling features. Typescript, JavaScript, docker files, Vue files … it all works great! Sometimes we have to load an extension to make some of these light up (e.g. Vue files with the Vetur extension). So you can understand it makes me sad when I open a file and I get zero help from the tool. No color coding of...