WASDEV(The AI WorkShop)Docs Website Download

Chapter 6

Code editor

Open, write and search code: tabs, split view, multiple cursors, search and replace, code intelligence, formatting and the terminal.

Open and manage files

A code file open next to the project explorer
A code file open next to the project explorer
  1. Click the Local Project icon in the activity bar (Ctrl+Shift+E) to see the files of the project.
  2. Click a file to open it in a tab.
  3. Press Ctrl+P and type part of a name to open a file without the mouse.
  4. Press Ctrl+Tab to go to the next tab and Ctrl+W to close the current one.
  5. Right-click a tab for Close Others, Close to the Right, Close Saved, Close All, Copy Path, Reveal in Explorer View and Send to AI Chat.
  • Ctrl+Shift+T reopens the tab you just closed.
  • Tabs in the module bar shows how many files are open and brings you back to them from any module.
The File menu: new file, open, save and recent projects
The File menu: new file, open, save and recent projects

Create, rename and delete files

  1. In the Local Project view, right-click a folder.
  2. Choose New File or New Folder, type the name and press Enter.
  3. Right-click a file for Rename…, Duplicate or Delete.
  4. Version history… shows the earlier saved versions of a file and lets you bring one back.
  • The header of the view has Import, Refresh and Run the project.
  • Reveal in File Explorer opens the folder in Windows; Open in Terminal opens a terminal there.

Save your work

  1. Press Ctrl+S to save the active file, or Ctrl+K then S to save all files.
  2. To save automatically, open Settings → Editor & Files and tick Save files automatically, then choose how often.
  • The save indicator at the right of the module bar shows whether something is unsaved; clicking it saves everything.

Edit faster

  1. Hold Alt and click to add a second cursor. Type: both places change together.
  2. Select a word and press Ctrl+D to select its next occurrence too.
  3. Press Alt+Up or Alt+Down to move the current line, and Shift+Alt+Down to copy it.
  4. Press Ctrl+/ to comment or uncomment the selected lines.
  5. Click the small arrow in the margin to fold a block of code.
  • Ctrl+Shift+K deletes the line. Alt+Z turns word wrap on or off.

Search and replace

The Search view with results grouped by file
The Search view with results grouped by file
  1. Press Ctrl+F to search in the current file, Ctrl+H to replace.
  2. Press Ctrl+Shift+F to search in the whole project: the Search view opens in the side bar.
  3. Type your text. Use the three toggles for match case, whole word and regular expression.
  4. Use the include and exclude fields to limit the search to some files.
  5. Click a result to open the file at that line.
  6. To replace everywhere, fill the Replace field and click Replace all.
  • Ctrl+G goes to a line number.

Split the editor

Two files side by side
Two files side by side
  1. Press Ctrl+\ to split the editor into two groups.
  2. Press Ctrl+1 or Ctrl+2 to move the focus to the first or the second group.
  3. Drag a tab from one group to the other.
  • Right-click a tab and choose Detach into a separate window to move a file to another screen.

Turn on code intelligence

Completion, go to definition and rename are provided by a language server for each language.

  1. Open a file. If the language server is missing, a bar proposes Install or Not now.
  2. Click Install. WASDEV downloads and starts the server.
  3. Press Ctrl+Space for completion, F12 to go to a definition, F2 to rename a symbol everywhere.
  • Available for Python, TypeScript and JavaScript, HTML, CSS, JSON, C and C++, Rust, Go, Dart and PHP.
  • Problems found in the code are listed in the ERRORS tab of the bottom panel (Ctrl+Shift+M).
The ERRORS tab of the bottom panel lists the problems found in the code
The ERRORS tab of the bottom panel lists the problems found in the code

Format the code

  1. Press Shift+Alt+F to format the document.
  2. To format every time you save, open Settings → Editor & Files and tick Format on save.
  • The formatter depends on the language: Prettier, Ruff or Black, PHP-CS-Fixer and others. WASDEV proposes to install the one that is missing.
  • Ctrl+K then M changes the language mode of the file.

Use the terminal

The TERMINAL tab of the bottom panel
The TERMINAL tab of the bottom panel
  1. Press Ctrl+J to open the bottom panel and click TERMINAL, or click Terminal in the title bar.
  2. Type your commands. The terminal starts in the project folder.
  3. Press Ctrl+Shift+5 to split the terminal, and use the side tabs to switch between several terminals.
  4. Right-click for Copy, Paste and Clear screen.
  • The AI button opens an AI CLI or another shell in a new terminal.
  • The corner buttons detach the tab into a separate window or enlarge the panel.

Preview Markdown

A Markdown file and its preview
A Markdown file and its preview
  1. Open a .md file.
  2. Press Ctrl+Shift+V to open the preview.

Install an extension

The Extensions view
The Extensions view
  1. Click the Extensions icon in the activity bar (Ctrl+Shift+X).
  2. Click Install an extension (.wasext / .zip or folder)… and choose the file.
  3. Use Enable or Uninstall on an installed extension.

Insert a library

Language Libraries: 252 libraries with their licence
Language Libraries: 252 libraries with their licence
  1. Click Language Libraries in the title bar (Ctrl+Shift+L).
  2. Search a library by name or browse the categories. Filter by licence if you need to.
  3. Click Insert CDN into file to add the link to the open file, Copy to copy it, or Install to add the package to the project.