Side Bar

The P42 JavaScript Assistant adds a new section to the Visual Studio Code side bar. It contains several panels:

Actions Panel

The actions panel shows available P42 actions for the current cursor position and selection. It updates when you move the cursor, change the selection, or switch the active editor. You can execute an action by clicking on it.

P42 Actions Panel

Suggestion Panel

The suggestions panel shows recommended refactorings for the currently active editor. You can expand a suggestion by clicking on it. The expanded suggestion can be applied from the sidebar.

P42 Suggestion Panel

Apply All Safe Suggestions

With P42 Pro, you can quickly refactor the currently active editor content by applying all safe suggestions.

Apply All Safe Suggestions