4.9 KiB
4.9 KiB
Helix Editor – Ein umfassender Einstieg für Anfänger (Deutsch)
Inhalt
- Helix Editor – Ein umfassender Einstieg für Anfänger (Deutsch)
✨ Was ist Helix?
Helix ist ein moderner, terminalbasierter Code-Editor mit Fokus auf Produktivität, Effizienz und minimalistische Bedienung. Er verwendet modale Eingabe (wie Vim), bietet jedoch eine eigene, einsteigerfreundlichere Philosophie mit moderner Technologie wie LSP, Tree-sitter, und Syntax-Highlighting direkt aus dem Terminal.
🔧 Installation
Linux (Fedora, Arch, Debian)
# Fedora
sudo dnf install helix
# Arch (via pacman)
sudo pacman -S helix
# Debian/Ubuntu (nur in neueren Versionen oder via GitHub)
GitHub Release (empfohlen für aktuellste Version)
- Gehe zu: https://github.com/helix-editor/helix/releases
- Lade das passende Paket für dein System herunter
- Entpacken:
tar -xvf helix-*-x86_64-linux.tar.xz
sudo cp helix-*/helix/hx /usr/local/bin/
📁 Erstes Projekt starten
Beispiel: Rust-Projekt
cargo new hallo_helix
cd hallo_helix
hx src/main.rs
Beispiel: JavaScript-Projekt
mkdir node_hello && cd node_hello
echo 'console.log("Hallo, Welt!");' > index.js
hx index.js
⌨ Bedienkonzept von Helix
Modale Steuerung (ähnlich wie Vim)
- Normalmodus: Standardmodus zum Navigieren und Bearbeiten
- Einfügemodus (Insert):
i
drücken zum Schreiben - Auswahlmodus (Select):
v
für Zeichenweise,V
für Zeilenweise Auswahl
Wechsel der Modi
Modus | Taste | Funktion |
---|---|---|
Normal | Esc |
Zur Steuerung & Befehle |
Insert | i |
Einfügen / Tippen |
Select | v |
Auswahl ab Cursor |
Line-Select | V |
Ganze Zeile auswählen |
⚖️ Wichtige Tastenkombinationen
Tastenkombi | Bedeutung |
---|---|
:w |
Datei speichern |
:q |
Editor beenden |
:wq |
Speichern und beenden |
g g |
Zum Anfang der Datei |
G |
Zum Ende der Datei |
d d |
Aktuelle Zeile löschen |
u |
Letzte Änderung rückgängig machen |
space + / |
Fuzzy-Dateisuche starten |
space + g |
Git-Diff anzeigen |
🪨 Sprachserver (LSP)
Helix erkennt automatisch den Dateityp und startet den passenden Sprachserver:
Rust
rustup component add rust-analyzer
JavaScript/TypeScript
npm install -g typescript typescript-language-server
C / C++
sudo dnf install clang clang-tools-extra
⚖️ LSP-Befehle in Helix
Taste | Bedeutung |
---|---|
g d |
Gehe zur Definition |
g r |
Gehe zu Referenzen |
K |
Hover-Info anzeigen (Typ, Doku) |
= |
Formatieren |
📂 Konfiguration
Helix-Konfiguration liegt unter:
~/.config/helix/config.toml
Zum Öffnen:
:config-open
Beispiel-Inhalt
theme = "base16_default_dark"
[keys.normal]
"C-s" = ":w"
"C-q" = ":wq"
🌍 Weitere Ressourcen
- Offizielle Seite: https://helix-editor.com
- GitHub: https://github.com/helix-editor/helix
- Tastenkombis: https://docs.helix-editor.com/