Ligatures are special characters in a font that combine two or more characters into one. For example, if you use a ligatured font, whenever you type != it will become ≠. Aside from the arguments whether using a ligatured font is good or bad thing in your code, here's what you need to do when you want to enable it in Visual Studio Code. For this example, we'll use Cascadia Code (NOT … [Read more...]
How to Add Comma to Each Line Using Visual Studio Code or Sublime Text
Sometimes the simplest thing is really taken for granted and we take the long route to do the simplest thing. We received a CSV with thousands of ID numbers that will be used to update a database table. The data would look like the following: The goal is just to add a comma at the end of each line so it can be used to update data in a database table. In the past, we would probably … [Read more...]
How to Open Visual Studio Code from command line macOS
When you use Visual Studio Code on Windows, one handy feature is you can always call it from the command line by typing "code ." (without the quotes) in the folder where you want to work on. But when you try that on macOS Terminal, this is what you get: zsh: command not found: code Not to worry, the same feature can be had on macOS but it's just not installed by default. In order to … [Read more...]
How to Setup Visual Studio Code for Hugo Static Site Generator
Based on a few questions on how to setup an environment to edit content using Hugo, here's a few simple steps to follow if you want a quick and easy way to do it. Keep in mind, the beauty of using Hugo is that you are free to use any text editor you like. This is not the only way to do it but this will get you there fast if you don't have anything setup yet. Assumptions Hugo is already … [Read more...]
How to Reassign Column Selection Shortcut Keys in Sublime Text
Following the previous post on assigning a new keyboard shortcuts for column selection, this time we're going to the same thing in Sublime Text. As always, before you make any changes, make sure you backup everything. macOS (OSX) On the top menu, click on Sublime Text -> Preferences -> Key Bindings and a split screen will open. Using the same key combination as in the example … [Read more...]