Bližnjice na Netbeansu - najpomembnejše bližnjice na tipkovnici
Netbeans je pameten in hiter način kodiranja namiznih, mobilnih in spletnih aplikacij. V tem članku vas bomo seznanili z najpomembnejšimi kombinacijami tipk in bližnjic.
Bližnjica 1: Odložišče Netbeans
Z določenimi kombinacijami tipkov lahko hitro odložite ali izpraznite odložišče.
- Če ne izberete znaka ali besede, [Ctrl] + [C] kopira celotno vrstico v odložišče.
- Z [Ctrl] + [V] lahko prilepite predhodno kopirano izvorno besedilo iz odložišča.
- Praktično: [Ctrl] + [V] + [Shift] kopirano besedilo oblikuje neposredno po uvozu.
Bližnjica 2: Izbrišite s kombinacijo tipk
- Seveda lahko najprej izbrišete s (kontekstnim) menijem ali tipko [Del].
- Če pa želite izbrisati celo vrstico, lahko to storite s kombinacijo tipk [Ctrl] + [E], ne da bi morali črto označiti.
Bližnjica 3: Komentirajte v Netbeansu
Če želite odstraniti vrstico iz toka programa, vendar je ne želite izbrisati, pomaga naslednja bližnjica:
- Z [Ctrl] + [Shift] + [C] lahko aktivirate ukaz "Preklopi komentar", da hitro komentirate izbrane vrstice ali odstranite komentarje.
Bližnjica 4: premikanje linij s kombinacijo tipk
Z desnimi bližnjicami na tipkovnici lahko preprosto premikate, premikate in odrivate črte.
- S puščičnima tipkama in [Alt] + [Shift] premikate trenutne ali izbrane vrstice navzgor ali navzdol ali jih premikate navzven ali navzven.
Bližnjica 5: Pravokotni izbor v urejevalniku Netbeans
Poleg klasičnega izbora znakov in vrstic imajo urejevalniki besedil tudi pravokotno izbiro (preverjeno v. 7.1).
- Najprej pritisnite [Ctrl] + [Shift] + [R], da aktivirate pravokotno izbiro (Opomba: Ista kombinacija tudi deaktivira izbor).
- Zdaj lahko z miško ali puščicami označite pravokotno območje v izvorni kodi v kombinaciji z [Shift].
- Zdaj lahko izbrišete ali kopirate izbrano besedilo na območju, lahko pa ga tudi nadomestite z vnosom novih podatkov.
Bližnjica 6: Hitro oblikovanje v Netbeansu
Hitro formatiranje nečesa je pomembno za obnovitev strukture in reda. Deluje tako:
- Z [Ctrl] + [Shift] + [F] lahko preoblikujete vse (če izbira manjka) ali izbrano območje.
Bližnjica 7: Hiperpovezave Netbeans za razrede, metode in polja
Tudi različne hiperpovezave je mogoče hitro in enostavno nastaviti s preprosto kombinacijo tipk.
- Pridržite tipko [Ctrl] in premaknite kazalec miške čez ime - metodo, polje ali ime razreda.
- Zdaj se pojavi hiperpovezava, ki jo lahko kliknete in skočite na deklaracijo. Izjava lahko odpre novega urejevalnika.
Bližnjica 8: Skočite na številko vrstice s kombinacijo tipk
Z naslednjo bližnjico lahko hitro krmarite po različnih linijah.
- Z [Ctrl] + [G] in ukazom "Goto Linenumber" lahko odprete pogovorno okno in tam vnesete številko vrstice.
- Po kliku gumba za potrditev kazalec samodejno skoči na določeno vrstico.
Bližnjica 9: Išči razred v Netbeansu
- Začnite iskalno pogovorno okno za imena razredov z [Ctrl] + [O] (ukaz "Pojdi na vrsto").
- Zdaj v pogovorno okno vnesite iskalni izraz in dvokliknite enega od rezultatov, da odprete datoteko.
- [Ctrl] + [Shift] + [1] prikaže to datoteko v strukturi projekta.
Bližnjica 10: maksimiziranje urejevalnika v Netbeansu
Za mnoge je urejevalnik premajhen - urednika lahko povečate z dvoklikom na ustrezni zavihek, prihranite pa lahko tudi s skrbnim klikom.
- Tukaj bližnjica [Ctrl] + [ESC] pomaga hitro povečati okno. Zavihek lahko znova zaprete, tako da ponovno vnesete kombinacijo.
Netbeans: težave s tipkovnimi bližnjicami in bližnjicami
Tako kot vam zgornje bližnjice na tipkovnici olajšajo življenje, boste tudi pri nekaterih uporabnikih hitro privedli do težav in zapletov - znane so naslednje osnovne težave:
- Bližnjice, uvedene z [Alt] + [Shift] ali [Alt] + [Shift], ne delujejo v sistemih Ubuntu. Sistem že uporablja [Alt] + [Shift] kot kratico. Te bližnjice lahko enostavno spremenite v "Orodja", "Možnosti" in "Tipkovnica".
- Nemški uporabniki ali vsaj tisti z nemško postavitvijo tipk bodo hitro opazili, da se običajne bližnjice, ki so jih uvedli [Shift], [Shift] ali [AltGr], kot so vejice, podpičja, zvezdice ali oklepaji, trčijo v kombinacije tipk za Netbeans. Kratice ustrezno prilagodite pod "Orodja", "Možnosti" in "Tipkovnica".
V drugem članku predstavljamo Netbeans podobne in dobre prevajalnike za C in C ++.