![]() We can do this by adding a "configuration" key to the "contributes" section of our 'package.json'. We will need to modify the package.json file to add these settings options. This extension also uses a settings that we can assign to the extension, and can be modified by the end user. ![]() The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below const vscode = require ( 'vscode' ) // this method is called when your extension is activated // your extension is activated the very first time the command is executed /** You can create a hello world extension using Yoeman and a VSCode generator called 'generator-code'. Microsoft has pretty good documentation on how to create an extension for VSCode, but I was looking at creating an extension that could take some user input for the name of the file I was trying to create. This tool creates a folder named after the current date, and then creates a markdown file with some frontmatter for metadata. I created a command line tool for generating new blog posts a couple of years ago called 'blogpostgenerator'. With this Node.js project, you must first ensure that all of the projects dependencies are installed from npm. These electron apps can run cross platform on Windows, MacOS and Linux. Web developers can use their existing skillsets to create application based on web technologies like HTML, CSS and JavaScript. Electron was created to make it easier for web developers to create desktop applications. VSCode code is built on top of Electron, a framework from GitHub that is based on Chromium and Node.js. ![]() These extensions are written in JavaScript. From the very beginning VSCode has been extensible, in other words you add functionality to it very easily with extensions. It is used for many different types of application development, everything from C++ to Salesforce. If you are not familiar with Visual Studio Code, or VSCode for short, it is Microsoft's open source code editor. ![]() One of those applications is one that I am using right now as I write this post, Visual Studio Code. There are a lot of applications now that are based on Node.js that you can extend using JavaScript. Using Node.js with Visual Studio Code Step-by-Step Overview on using Visual Studio Code with Node. I recently wrote about creating your own tools using Node.js. ![]()
0 Comments
Leave a Reply. |