Showing posts with label development environment. Show all posts
Showing posts with label development environment. Show all posts

Thursday, August 29, 2019

Change Visual Studio Code syntax highlighting

This how-to shows how to change the syntax hilighting in Visual Studio code. This is the basic VS code PowerShell highlighting. I would have liked at least, a different color for the variables.



I wanted to use colorisers for the PowerShell variables. After few searches, I found the trick:
Open the settings of VS Code:



In Settings Editor, switch from "ui" to "json"



This is the native parameters you should have after opening the settings of VS Code in json mode:



This is the trick for changing the variable, the keywords (if, else, do, while, etc.) and the function (PowerShell cmdlets) color. Paste this without forgetting the coma to the existing text before pasting. You will put the color you like and will notice a tool for choosing the color you want. Awesome!


    "editor.tokenColorCustomizations": {
        "variables": "#9ad7fa",
        "keywords": "#fff",
        "functions": "#7096ff"
     }




This is the screenshot of my final config:



As soon as you save your settings.json file you can switch to an already open PowerShell source code file and enjoy the new syntax highlighting.



Enjoy!

Check list for configuring a local developement environment for Azure

As often, I am writing this post as a memo and also it can be useful to anybody.
As a Azure specialist contractor, I often go to a new client palce and receive a laptop to work on, from the client company. One first thing to do is often to configue the new Azure local environement to start working. Here is a check list of action to perform for working confortably:
  • Install Chocolatey (because you are sure to get secure software for windows from it, and that the installation process is simplified)
  • Install GitExtensions from Chocolatey (because it is a fine tool to mamage all the Git complexity when integrating an Azure devops team and most of all, you haven't to re-authenticate for each push)
  • Install VS code
  • Configure VS Code for Azure Powershell (I like PowerShell ISE also, but with VS Code you can work on several files, change the syntaxic coloration,etc.) :
  • Install Azure Resource Manager Tools Extension for VS Code
  • Install Azure App Service Extension for VS Code