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
Create a New Project
- Navigate to your dashboard
- Click "New Project"
- Select "Code Project" as the project type
- Enter a descriptive name (e.g., "My Web App")
- Click "Create"
Add Your First File
- Open your new project
- Click "New File" or press
Ctrl+N(Windows/Linux) orCmd+N(Mac) - Enter a filename with extension (e.g.,
app.js,main.py) - Start coding
Organize Your Files
- Create folders to organize code
- Use the file tree to navigate
- 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.
Navigating the Editor
| Action | Windows/Linux | Mac |
|---|---|---|
| Open file | Ctrl+P | Cmd+P |
| Quick command | Ctrl+Shift+P | Cmd+Shift+P |
| Go to line | Ctrl+G | Cmd+G |
| Toggle sidebar | Ctrl+B | Cmd+B |
| Toggle terminal | Ctrl+` | Cmd+` |
| Search in files | Ctrl+Shift+F | Cmd+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:
Trigger Suggestions
Start typing and suggestions appear automatically. Press Ctrl+Space to manually trigger.
Navigate Suggestions
Use arrow keys to browse suggestions. Press Tab or Enter to accept.
View Documentation
Hover over a suggestion to see documentation and type information.
Code Snippets
Insert common code patterns quickly:
| Language | Snippet Trigger | Expands To |
|---|---|---|
| JavaScript | func | Function declaration |
| Python | def | Function definition |
| HTML | html5 | HTML5 boilerplate |
| React | rfc | React 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) orCmd+Option+Up/Down(Mac) - Add cursor at click: Hold
Altand click - Select all occurrences:
Ctrl+Shift+L(Windows/Linux) orCmd+Shift+L(Mac) - Select next occurrence:
Ctrl+D(Windows/Linux) orCmd+D(Mac)
Code Formatting
Auto-Formatting
Format your code automatically:
| Action | Shortcut |
|---|---|
| Format document | Shift+Alt+F |
| Format selection | Ctrl+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:
- Open settings (
Ctrl+,) - Search for "format on save"
- Enable the option
- Your code formats automatically when you save
Finding and Replacing
Search in Current File
- Find:
Ctrl+F(Windows/Linux) orCmd+F(Mac) - Replace:
Ctrl+H(Windows/Linux) orCmd+H(Mac) - Find next:
F3orEnter - Find previous:
Shift+F3orShift+Enter
Search Across Files
- Search in all files:
Ctrl+Shift+F(Windows/Linux) orCmd+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
| Action | Shortcut | Description |
|---|---|---|
| New file | Ctrl+N | Create new file |
| Save file | Ctrl+S | Save current file |
| Save all | Ctrl+K S | Save all open files |
| Close file | Ctrl+W | Close current tab |
| Reopen closed | Ctrl+Shift+T | Reopen 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
Open Git Panel
Click the Git icon in the left sidebar or press Ctrl+Shift+G.
Initialize Repository
Click "Initialize Repository" button.
Configure Remote (Optional)
Add GitHub, GitLab, or Bitbucket remote URL.
Making Commits
Review Changes
See modified files in the Git panel. Files show with status indicators:
M= ModifiedA= AddedD= DeletedU= Untracked
Stage Changes
Click the + icon next to files to stage, or click "Stage All Changes".
Write Commit Message
Enter a descriptive commit message in the text box.
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:
- View branches: Click branch name in status bar
- Create branch: Click "Create Branch" icon
- Switch branches: Select from dropdown
- 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) orCtrl+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
clearorcls
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:
Add Comment
- Select the code you want to comment on
- Right-click → "Add Comment" or press
Ctrl+Shift+A - Type your comment
- Tag teammates with
@username
Reply to Comments
Click on a comment thread to reply and discuss.
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
- Click in the gutter (left margin) next to line numbers
- A red dot appears indicating a breakpoint
- Click again to remove the breakpoint
Starting a Debug Session
- Open the Debug panel (Debug icon in sidebar)
- Click "Start Debugging" or press
F5 - Your program runs until it hits a breakpoint
Debug Controls
| Control | Shortcut | Action |
|---|---|---|
| Continue | F5 | Resume execution |
| Step Over | F10 | Execute current line |
| Step Into | F11 | Enter function call |
| Step Out | Shift+F11 | Exit current function |
| Stop | Shift+F5 | Stop 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
| Action | Windows/Linux | Mac |
|---|---|---|
| File Operations | ||
| New file | Ctrl+N | Cmd+N |
| Save | Ctrl+S | Cmd+S |
| Close file | Ctrl+W | Cmd+W |
| Editing | ||
| Copy line | Ctrl+C (no selection) | Cmd+C |
| Cut line | Ctrl+X (no selection) | Cmd+X |
| Delete line | Ctrl+Shift+K | Cmd+Shift+K |
| Move line up/down | Alt+Up/Down | Option+Up/Down |
| Duplicate line | Shift+Alt+Up/Down | Shift+Option+Up/Down |
| Selection | ||
| Select all | Ctrl+A | Cmd+A |
| Expand selection | Shift+Alt+Right | Shift+Option+Right |
| Shrink selection | Shift+Alt+Left | Shift+Option+Left |
| Search | ||
| Find | Ctrl+F | Cmd+F |
| Replace | Ctrl+H | Cmd+H |
| Find in files | Ctrl+Shift+F | Cmd+Shift+F |
| Navigation | ||
| Go to file | Ctrl+P | Cmd+P |
| Go to line | Ctrl+G | Cmd+G |
| Go to symbol | Ctrl+T | Cmd+T |
| View | ||
| Toggle sidebar | Ctrl+B | Cmd+B |
| Toggle terminal | Ctrl+` | Cmd+` |
| Zoom in | Ctrl+= | Cmd+= |
| Zoom out | Ctrl+- | 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:
- Open command palette (
Ctrl+Shift+P) - Type "Color Theme"
- Select from available themes
Popular themes:
- Dark: Monokai, One Dark Pro, Dracula
- Light: GitHub Light, Solarized Light
Keybindings
Customize keyboard shortcuts:
- Open command palette
- Type "Keyboard Shortcuts"
- 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
- Check file extension is correct
- Manually select language from status bar
- Reload the editor
IntelliSense Not Appearing
- Ensure language support is installed
- Check for syntax errors in file
- Press
Ctrl+Spaceto manually trigger
Terminal Not Responding
- Click in terminal to focus
- Press
Ctrl+Cto cancel current command - Close and open new terminal if needed
Git Changes Not Showing
- Ensure Git is initialized in project
- Refresh Git panel
- Check
.gitignorefor excluded files
Advanced Features
Task Automation
Create automated tasks:
- Create
.vscode/tasks.jsonin project - Define tasks (build, test, deploy)
- Run with
Ctrl+Shift+B
Code Snippets Creation
Create custom snippets:
- Open command palette
- Type "Configure User Snippets"
- Select language
- Add your snippet definitions
Extensions (Coming Soon)
Coming Soon:
Extension marketplace is in development. Custom extensions will be available soon.
Related Guides
Next Steps
- Explore language-specific features
- Learn about Git workflows
- Check keyboard shortcuts reference
Need Help?
- Search our documentation
- Contact support@helse.ai
- Join our developer community