Code Editor Guide

Master the Helse Web code editor with this comprehensive guide covering all features, shortcuts, and workflows.

Code Editor Guide

This comprehensive guide will help you master the Helse Web code editor. Learn how to write, debug, and collaborate on code efficiently.

Getting Started

Creating a Code Project

1

Create a New Project

  1. Navigate to your dashboard
  2. Click "New Project"
  3. Select "Code Project" as the project type
  4. Enter a descriptive name (e.g., "My Web App")
  5. Click "Create"
2

Add Your First File

  1. Open your new project
  2. Click "New File" or press Ctrl+N (Windows/Linux) or Cmd+N (Mac)
  3. Enter a filename with extension (e.g., app.js, main.py)
  4. Start coding
3

Organize Your Files

  1. Create folders to organize code
  2. Use the file tree to navigate
  3. Drag and drop to rearrange files

Interface Overview

Layout Components

The code editor interface consists of:

  • File Explorer (Left sidebar): Browse project files and folders
  • Editor Pane (Center): Write and edit code with syntax highlighting
  • Terminal (Bottom panel): Run commands and view output
  • Git Panel (Right sidebar): Manage version control
  • Toolbar (Top): Quick actions and settings

Tip:

Customize the layout by dragging panels to your preferred position. Your layout preferences are saved automatically.

ActionWindows/LinuxMac
Open fileCtrl+PCmd+P
Quick commandCtrl+Shift+PCmd+Shift+P
Go to lineCtrl+GCmd+G
Toggle sidebarCtrl+BCmd+B
Toggle terminalCtrl+`Cmd+`
Search in filesCtrl+Shift+FCmd+Shift+F

Writing Code

Syntax Highlighting

The editor automatically detects file types and applies appropriate syntax highlighting:

  • Detected from extension: .js → JavaScript, .py → Python, etc.
  • Manual selection: Use the language selector in the bottom-right
  • 50+ languages: Comprehensive language support

IntelliSense (Auto-Completion)

Get intelligent code suggestions as you type:

1

Trigger Suggestions

Start typing and suggestions appear automatically. Press Ctrl+Space to manually trigger.

2

Navigate Suggestions

Use arrow keys to browse suggestions. Press Tab or Enter to accept.

3

View Documentation

Hover over a suggestion to see documentation and type information.

Code Snippets

Insert common code patterns quickly:

LanguageSnippet TriggerExpands To
JavaScriptfuncFunction declaration
PythondefFunction definition
HTMLhtml5HTML5 boilerplate
ReactrfcReact functional component

Type the trigger and press Tab to expand.

Multi-Cursor Editing

Edit multiple locations simultaneously:

  • Add cursor above/below: Ctrl+Alt+Up/Down (Windows/Linux) or Cmd+Option+Up/Down (Mac)
  • Add cursor at click: Hold Alt and click
  • Select all occurrences: Ctrl+Shift+L (Windows/Linux) or Cmd+Shift+L (Mac)
  • Select next occurrence: Ctrl+D (Windows/Linux) or Cmd+D (Mac)

Code Formatting

Auto-Formatting

Format your code automatically:

ActionShortcut
Format documentShift+Alt+F
Format selectionCtrl+K Ctrl+F

Supported formatters:

  • JavaScript/TypeScript: Prettier, ESLint
  • Python: Black, autopep8
  • Go: gofmt
  • Rust: rustfmt
  • C/C++: clang-format

Format on Save

Enable automatic formatting when saving:

  1. Open settings (Ctrl+,)
  2. Search for "format on save"
  3. Enable the option
  4. Your code formats automatically when you save

Finding and Replacing

Search in Current File

  • Find: Ctrl+F (Windows/Linux) or Cmd+F (Mac)
  • Replace: Ctrl+H (Windows/Linux) or Cmd+H (Mac)
  • Find next: F3 or Enter
  • Find previous: Shift+F3 or Shift+Enter

Search Across Files

  • Search in all files: Ctrl+Shift+F (Windows/Linux) or Cmd+Shift+F (Mac)
  • Include/exclude patterns: Use glob patterns (e.g., *.js, !node_modules/**)
  • Replace across files: Click replace icon in search panel

Regular Expressions

Enable regex search with the .* button in the search box:

/function\s+\w+\(/g    # Find all function declarations
/TODO:\s*(.+)/g        # Find all TODO comments

File Management

Working with Files

ActionShortcutDescription
New fileCtrl+NCreate new file
Save fileCtrl+SSave current file
Save allCtrl+K SSave all open files
Close fileCtrl+WClose current tab
Reopen closedCtrl+Shift+TReopen last closed file

File Tree Operations

  • Create folder: Right-click → "New Folder"
  • Rename: Right-click → "Rename" or press F2
  • Delete: Right-click → "Delete" or press Delete
  • Duplicate: Right-click → "Duplicate"
  • Move: Drag and drop files/folders

Working with Git

Initializing a Repository

1

Open Git Panel

Click the Git icon in the left sidebar or press Ctrl+Shift+G.

2

Initialize Repository

Click "Initialize Repository" button.

3

Configure Remote (Optional)

Add GitHub, GitLab, or Bitbucket remote URL.

Making Commits

1

Review Changes

See modified files in the Git panel. Files show with status indicators:

  • M = Modified
  • A = Added
  • D = Deleted
  • U = Untracked
2

Stage Changes

Click the + icon next to files to stage, or click "Stage All Changes".

3

Write Commit Message

Enter a descriptive commit message in the text box.

4

Commit

Click the checkmark icon or press Ctrl+Enter to commit.

Viewing Diffs

See exactly what changed:

  • Inline diff: Changed lines highlighted in the editor
  • Side-by-side diff: Click on a modified file in Git panel
  • Diff viewer: Shows old vs. new code

Branching

Manage branches effectively:

  1. View branches: Click branch name in status bar
  2. Create branch: Click "Create Branch" icon
  3. Switch branches: Select from dropdown
  4. Merge branches: Use Git panel merge tool

Push and Pull

Sync with remote repositories:

  • Push: Upload local commits to remote
  • Pull: Download and merge remote changes
  • Fetch: Download remote changes without merging
  • Sync: Push and pull in one action

Using the Terminal

Opening the Terminal

  • Toggle terminal: Ctrl+`` (backtick) or Ctrl+Shift+`` for new terminal
  • Multiple terminals: Click + icon to create additional terminals
  • Split terminal: Click split icon for side-by-side terminals

Terminal Features

  • Working directory: Automatically set to your project folder
  • Full shell access: Bash, PowerShell, Zsh, or custom shell
  • Copy/paste: Right-click for context menu
  • Clear terminal: Type clear or cls

Common Terminal Tasks

Installing Dependencies

# Node.js
npm install express

# Python
pip install pandas numpy

# Ruby
gem install rails

# Rust
cargo add serde

Running Scripts

# Node.js
npm start
node app.js

# Python
python main.py
python -m pytest

# Go
go run main.go

Building Projects

# Node.js
npm run build

# Rust
cargo build --release

# Go
go build

Collaboration

Real-Time Co-Editing

Work with teammates on the same files:

  • Live cursors: See where others are editing (colored cursors with names)
  • Simultaneous edits: Multiple people edit different parts
  • Conflict prevention: Auto-merging of changes
  • Presence awareness: See who's online in the project

Code Comments and Discussions

Add inline comments to code:

1

Add Comment

  1. Select the code you want to comment on
  2. Right-click → "Add Comment" or press Ctrl+Shift+A
  3. Type your comment
  4. Tag teammates with @username
2

Reply to Comments

Click on a comment thread to reply and discuss.

3

Resolve Comments

Mark comments as resolved when addressed.

Debugging (Beta)

Beta Feature:

Debugging is currently in beta and available for select languages: JavaScript, Python, and Node.js.

Setting Breakpoints

  1. Click in the gutter (left margin) next to line numbers
  2. A red dot appears indicating a breakpoint
  3. Click again to remove the breakpoint

Starting a Debug Session

  1. Open the Debug panel (Debug icon in sidebar)
  2. Click "Start Debugging" or press F5
  3. Your program runs until it hits a breakpoint

Debug Controls

ControlShortcutAction
ContinueF5Resume execution
Step OverF10Execute current line
Step IntoF11Enter function call
Step OutShift+F11Exit current function
StopShift+F5Stop debugging

Watch Variables

  • View variable values in the Variables panel
  • Add watch expressions to track specific values
  • Inspect object properties by expanding them

Keyboard Shortcuts

Essential Shortcuts

ActionWindows/LinuxMac
File Operations
New fileCtrl+NCmd+N
SaveCtrl+SCmd+S
Close fileCtrl+WCmd+W
Editing
Copy lineCtrl+C (no selection)Cmd+C
Cut lineCtrl+X (no selection)Cmd+X
Delete lineCtrl+Shift+KCmd+Shift+K
Move line up/downAlt+Up/DownOption+Up/Down
Duplicate lineShift+Alt+Up/DownShift+Option+Up/Down
Selection
Select allCtrl+ACmd+A
Expand selectionShift+Alt+RightShift+Option+Right
Shrink selectionShift+Alt+LeftShift+Option+Left
Search
FindCtrl+FCmd+F
ReplaceCtrl+HCmd+H
Find in filesCtrl+Shift+FCmd+Shift+F
Navigation
Go to fileCtrl+PCmd+P
Go to lineCtrl+GCmd+G
Go to symbolCtrl+TCmd+T
View
Toggle sidebarCtrl+BCmd+B
Toggle terminalCtrl+`Cmd+`
Zoom inCtrl+=Cmd+=
Zoom outCtrl+-Cmd+-

See the complete Keyboard Shortcuts Reference for all shortcuts.

Settings and Customization

Editor Settings

Access settings with Ctrl+, (Windows/Linux) or Cmd+, (Mac):

  • Font: Family, size, and ligatures
  • Tab size: Spaces per tab (2, 4, etc.)
  • Line numbers: Show/hide, relative numbers
  • Minimap: Code overview on the right
  • Word wrap: Soft wrap long lines
  • Auto-save: Automatic saving interval

Themes

Choose from built-in themes or create custom themes:

  1. Open command palette (Ctrl+Shift+P)
  2. Type "Color Theme"
  3. Select from available themes

Popular themes:

  • Dark: Monokai, One Dark Pro, Dracula
  • Light: GitHub Light, Solarized Light

Keybindings

Customize keyboard shortcuts:

  1. Open command palette
  2. Type "Keyboard Shortcuts"
  3. Search for command and reassign key

Or choose a preset:

  • VS Code
  • Sublime Text
  • Vim
  • Emacs

Best Practices

Code Organization

  • Use folders: Organize code by feature or module
  • Naming conventions: Clear, descriptive file and variable names
  • Consistent formatting: Enable format on save
  • Comment your code: Explain complex logic

Version Control

  • Commit frequently: Small, focused commits
  • Descriptive messages: Explain what and why
  • Branch strategy: Use feature branches
  • Review before commit: Check diffs

Performance

  • Close unused files: Reduce memory usage
  • Use search efficiently: Narrow search scope with patterns
  • Limit extensions: Only install necessary extensions
  • Regular cleanup: Remove unused files and dependencies

Collaboration

  • Communicate changes: Use commit messages and comments
  • Code reviews: Review teammate's code
  • Consistent style: Follow team coding standards
  • Document decisions: Add comments for complex logic

Troubleshooting

Common Issues

Syntax Highlighting Not Working

  1. Check file extension is correct
  2. Manually select language from status bar
  3. Reload the editor

IntelliSense Not Appearing

  1. Ensure language support is installed
  2. Check for syntax errors in file
  3. Press Ctrl+Space to manually trigger

Terminal Not Responding

  1. Click in terminal to focus
  2. Press Ctrl+C to cancel current command
  3. Close and open new terminal if needed

Git Changes Not Showing

  1. Ensure Git is initialized in project
  2. Refresh Git panel
  3. Check .gitignore for excluded files

Advanced Features

Task Automation

Create automated tasks:

  1. Create .vscode/tasks.json in project
  2. Define tasks (build, test, deploy)
  3. Run with Ctrl+Shift+B

Code Snippets Creation

Create custom snippets:

  1. Open command palette
  2. Type "Configure User Snippets"
  3. Select language
  4. Add your snippet definitions

Extensions (Coming Soon)

Coming Soon:

Extension marketplace is in development. Custom extensions will be available soon.

Next Steps

Need Help?