Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.6 KB

using.md

File metadata and controls

74 lines (56 loc) · 2.6 KB

Using the Extension

Table of contents

  1. Auto completion
  2. Chat Window
  3. Explain Code block
  4. Refactor Code block
  5. Generate Docstring for Function
  6. Generate Unit Test for Function
  7. Explain Problem

Auto Completion

Once started typing, you should see grey texts that show Windsurf's suggestions. You can press Tab to accept, and Alt+. to cycle through the suggestions.

Chat Window

In the Menu bar, click on Extenions > Windsurf > Open Chat Window.

This will bring up the Chat Window, which will be docked to the Solution Explorer by default.

Explain Code block

Right-click anywhere the code block you would like Windsurf to explain, there will be a Windsurf: Explain Code block in the context menu.

If you right-click on a function, you will see Windsurf: Explain Function instead.

Refactor Code block

Much like the Explain Code block feature, right-click anywhere the code block you would like Windsurf to refactor, there will be a Windsurf: Refactor Code block in the context menu.

Clicking on it will highlight the code block and open a dialog window asking how you would like to refactor it. You can select one of the preset or type in anything and hit ENTER.

Generate Docstring for Function

Right-click on any function, there will be a Windsurf: Generate Docstring for Function in the context menu.

Generate Unit Test for Function

Right-click on any function, there will be a Windsurf: Generate Unit Test for Function in the context menu.

Explain Problem

When you have a warning, error, or diagnostic message in your code, hovering on it will show a Windsurf: Explain Problem button.