P42 JS Assistant

Write modern, clear, and concise JavaScript and TypeScript.

No Employees
Founders Code
Solo Founder
AI
B2B
Bots
Productivity
Programming
SaaS
Utilities

Level up your Visual Studio Code refactoring tooling! P42 helps you write great JavaScript code - with automated refactorings, modernization suggestions, and safety warnings.

December 8, 2022 AI-generated explanations and documentation for JavaScript code

As a JavaScript developer, you know how challenging it can be to work with existing codebases. Often, the code is poorly documented, making it difficult to understand what it does and how it works. That's why I've added two new AI-powered features to the JS Assistant for Visual Studio Code: AI-generated JS-Doc comments and AI-generated explanations for code snippets.

November 1, 2022 6 VS Code Extensions for Productive Javascript and TypeScript Editing

Visual Studio Code provides a solid editing experience and offers many extensions you can install to take it to the next level. These six Visual Studio Code extensions help me stay in the flow and be productive when editing JavaScript and TypeScript code.

October 20, 2022 How to Configure the Touch Bar in Visual Studio Code in Under 5 Minutes

The touch bar on the MacBook has the potential to provide quick access to commonly used commands in Visual Studio Code.

In the default configuration, the 'go forward' and 'go back' buttons are very useful. However, other default touch bar actions are less valuable and take up space. You might also find that everyday operations such as 'rename' (F2) or 'go to definition' (F12) are harder to access because you need to hold down Fn.

This post will show you how to configure Visual Studio Code to make the most of the touch bar.

September 2, 2022 10,000 Installations of the P42 Refactoring Assistant in Visual Studio Code

About one year after the 1.0 release of the Refactoring Assistant, it has been installed over 10,000 times. Here are some growth stats:

0 => 100 installations: 1 month
100 => 1,000 installations: 4 months
1,000 => 10,000 installations: 10 months

The current version v1.147 offers 89 free and 24 premium code assists, compared to 16 code assists in v1.0.

June 25, 2022 Vue.js Support

You get all P42 code assists and refactoring suggestions inside<script> and <script setup> sections. TypeScript is supported inside <script lang="ts"> or <script setup lang="ts"> sections.

Does not require any other extension. Compatible with Vetur and Volar. Works in Visual Studio Code, on vscode.dev, and on github.dev.

June 21, 2022 What's new in P42? Summer 2022 Summary

Since February, the P42 JavaScript Assistant for Visual Studio Code has grown considerably and contains over 90 code assists and refactorings. The user interface has been improved based on feedback, and the JavaScript Assistant now supports Vue.js. Here are the details:

https://p42.ai/blog/2022-06-20/whats-new-in-p42-summer-2022-summary

May 30, 2022 85 JavaScript Code Assists for Visual Studio Code

JavaScript programming in an editor such as Visual Studio Code typically involves a lot of manual text editing, with the occasional copy-paste keyboard shortcuts or multi-cursor changes.

Code assists such as refactorings, code actions, and quick fixes are another tool in this repertoire. You can use code assists to make higher-level language-aware changes, e.g., you can extract an expression and all of its occurrences into a variable. When you make such changes manually, it can be time-consuming, and you risk making mistakes.

The JavaScript Assistant now contains 85 refactorings from many different categories. Check out the blog post for an overview:

May 17, 2022 User Feedback has become pretty positive 馃コ

"@p42ai makes refactoring a ton of fun 鉂わ笍"
-- Twitter

"My favorite VS code tool 馃憤"
-- Twitter

"One of the most useful tools in my VS Code arsenal.
Cleaning up old code takes a fraction of the time I spend before."
-- Twitter

"A few years ago I've switched from PHP Storm to X editor and then to @code. I really missed all those powerful refactoring commands PHP Storm had. @p42ai is slowly fulfilling that gap. Give it a try, it's awesome!"
-- Twitter

"Woah vscode is turning into an IDE. Amazing work"
-- Reddit

"Stopping by to echo great work! You have me seriously considering trying VS Code again with this one :)"
-- Reddit

"The code-suggestions have been really useful."
-- User Feedback

"P42 JavaScript Assistant is helping me a lot in my coding level. It helped me to learn to write simplified and modern code. I also referred P42 JavaScript Assistant to my colleagues as well. Thank you for the extension, it has changed the way used to write the code before."
-- User Feedback

"It has been very useful for my coding in nodejs."
-- User Feedback

May 10, 2022 Blog: You don't need void 0 (in JavaScript)

In JavaScript code, especially in older legacy code, you sometimes find the expression void 0. The void operator evaluates an expression and returns the primitive value undefined. void 0 evaluates 0, which does nothing, and then returns undefined. It is effectively an alias for undefined.

May 4, 2022 Blog: JavaScript Refactoring Gotchas: 5 Ways Converting to Optional Chaining Can Break Your Code

The optional chaining operator .? returns the value of an object property when the object is available and undefined otherwise. It lets you write concise and safe chains of connected objects when some of those objects can be null or undefined.

However, there are some cases where refactoring into optional chaining can lead to bugs:

About

Level up your Visual Studio Code refactoring tooling! P42 helps you write great JavaScript code - with automated refactorings, modernization suggestions, and safety warnings.