Visual Studio Code Powershell Extension Download Offline

0 views
Skip to first unread message
Message has been deleted

Saverio Lazaro

unread,
Jul 18, 2024, 8:11:10 AM7/18/24
to bangldinitul

If you prefer or need offline development tools, Husarion created an extension for Visual Studio Code, that will configure all you need to get started. This extension works both for Windows, Linux and MacOS. Installation process is described in the following sections and in the video below.

Info: In order to compile projects for CORE2, you need a compiler that can compile code for its ARM processor. We recommend installing the cross-compiler and other dependencies from your distribution packages.

visual studio code powershell extension download offline


Descargar archivo https://urluss.com/2yPyvj



Last week Microsoft released a new version of Visual Studio Code along with an extension for writingPowerShell in it. Visit code.visualstudio.com to download VisualStudio Code. There's also an update link on that page if you happen to have a version prior to0.10.1. The PowerShell extension for Visual Studio Code only works with PowerShell version 5.Either Windows 8.1 with the WMF 5 Production Preview installed or Windows 10 is sufficient.

The other day on X, I was asked about what things I would setup or configure on a new PowerShell installation. This is something I actually have thought about and face all the time when I setup a new demo virtual machine. I had been meaning to build new tooling to meet this challenge, and the question provided the spark I needed to get off my butt and get it done.

If you are running PowerShell 7, many of the critical items on my list are already addressed, so my code samples today will focus on Windows PowerShell 5.1 running on Windows 10 or Windows 11. The goal is to configure the Windows PowerShell environment for interactive use and code development.

Out of the box, Windows PowerShell ships with several features that have undergone significant changes. I want to update these features. The tricky thing is that because they are included with the operating system, you can't perform a simple update. For me, I want to make sure I have the latest version of the PSReadLine and Pester modules. I also want to use the newer Microsoft.PowerShell.PSResourceGet module which replaces the older PowerShellGet module. However, before I can install and use PSResourceGet, I need to update PowerShellGet.

I could take the easy route and install the tools manually, but I want to automate the process, including installing Winget. This gets slightly complicated. Winget has several dependencies I have to account for. I can get them from Nuget.org but I'll need to add a new package source.

This process doesn't install it like a piece of software. But I can get what I need from the package contents. The installed file has a .nuget extension, but the file is a zip file. I can extract the contents to a folder get the file I need, which I can then install using Add-AppxPackage.

In the initial versions of the script, I included additional PowerShell modules and packages directly in the code. Some items, like installing Pester and PSReadLine are special cases so I don't have problem with that code. But everything else can be moved to a configuration data file. This is a good example of the concept of separating the data you need to use from the code itself.

My script will also install VSCode extensions. I included this more as a demonstration than anything. Normally, I synchronize my VSCode settings across installations, but it is possible I'm setting up a new demo environment where I'm not going to login so this could be useful.

The other feature in my script is the ability to install the Appx packages offline. The Winget dependencies don't change often so I can save the files that I've downloaded. Likewise, I can periodically download the latest Winget release for future installations. The packages should go in the same folder. Be sure to use the same file names as in the script.

The other feature of the script to note is the use of background jobs. Once the core steps are out of the way, installing additional modules and packages can happen in parallel. The easiest way in Windows PowerShell is to run each activity in a background job.

You are welcome to give my code a try. I have posted the files as a GitHub gist, which I'll try to keep updated. The files are offered AS-IS for educational purposes as much as anything. The script is not 100% production-ready and lacks error handling. And of course, the extra modules and packages are things that I would want to install it. I'd love to hear what you think.

Developer productivity tools and extensions are increasing every year. The latest hype is for the tools that are powered by Artificial Intelligence. Such tools are constantly increasing in terms of quality and quantity.

Today, I am going to bring you 8 Great VS Code extensions powered by AI that you should take a look at if you want to explore AI extensions and become 10x more productive in 2023. So without further ado, let's get started!

Tabnine helps you generate code from comments, complete whole lines and functions, and even real-time midline code completion as you write your code. It also supports offline mode and private models trained on your own repositories.

Bito is an AI assistant tool with a diverse use case. You can use it to generate code, ask for syntax, generate test cases, code explanations, comment generation, improve code performance, check security, and learn technical concepts.

Mintlify Doc Writer is an awesome tool that uses AI to document your code. It generates AI documentation for your code in the form of comments that conforms to standard formats like JSDoc, reST, NumPy, etc.

To document your code with Mintlify, all you have to do is, place your cursor or highlight the part that you want to document and press [Ctrl +] .. Now, let Mintlify do the rest of the work.

It uses large language models trained on various open-source projects to debug and optimize your code, convert code from one programming language to another, generate documentation and code by giving instructions, and answer all your questions with its chatbot: KodeziChat.

Readable is an AI comment generator VS Code extension that helps you comment your code without writing a single comment yourself. It supports 10 different programming languages that include JavaScript, TypeScript, JSX/TSX, Python, and others.

Readable is both free and paid but the free version only shows stale comments. You have to pay $19.99 per year to use the AI comment generation feature. It has been installed more than 6,800 times on VS Code as of February 2023.

Denigma is an awesome AI tool that helps you understand code by explaining it in general conversational English. You can use it to generate an explanation of a certain block of code or of a whole file in just 2 clicks.

As for today, this is the end of the article. I hope you got to know some new VS Code AI extensions to play with when you are coding next time. Let me know if you are aware of any other VS Code AI extension that could be a great addition to the above list.

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

Thunder Client is lightweight and is suitable for users who want a simple user interface and fantastic user experience with zero complexity. It also runs flawlessly offline and provides documentation with markdown support ?.

Keep in mind that Postman is more robust and has a broader range of features built to industry standards. It allows a community of developers to explore the largest network of APIs, workspace, and collections all over the world. It also has features like creating teams, reporting, monitors (periodically checking for APIs performance and response), and mock servers (leverages mock servers that help simulate endpoints and their corresponding responses without a backend).

Like every great tool, Postman has an up-to-date learning centre where you can find documentation to get started with the tool. Sounds interesting too, right? Well yeah ? both are unique and perfect for their use cases.

If you want to use Thunder Client, you'll need to go to the VS Code marketplace to download the extension and then launch it. Once you've done that, here are a few basic things you can use the extension to do:

Track Activity: Thunder Client keeps track of recent API requests a user has made in the past. You can also filter the activity to narrow it down to a preferred activity search. It is also called History.

Use Collections: You can organise APIs so it's easier to access them. Collections are a group of APIs, so you can create a User collection to include APIs like create user, edit user, delete user, and so on.

Make Requests: You can specify your preferred HTTP verb to go along with the request, like POST, then the endpoint. With the request Thunder Client, there is also support for Query Parameters, HTTP Headers (Raw or Not), Authentication (None, Basic, Bearer, OAuth 2, AWS and NTLM Authentication), Body (Payload attached to individual request) and Test (you select the test type which can be a response code and set a value to assert).

Responses: Thunder Client offers a well-crafted response section with the response body, response status, and size and time it took for the request. It also lets users add markdown supported documentation, making it even more enjoyable.

To work with collections, click on the "Collections tab", then click on the icon the arrow points to in the image below. This shows a dropdown where you select if you want a "New collection" or have an existing collection for import.

d3342ee215
Reply all
Reply to author
Forward
0 new messages