Преки пътища към Netbeans - най-важните клавишни комбинации
Netbeans е интелигентният и бърз начин за кодиране на настолни, мобилни и уеб приложения. Ще ви запознаем с най-важните комбинации от клавиши и преки пътища в тази статия.
Пряк път 1: Netbeans клипборд
С определени комбинации от клавиши можете бързо да попълните или изпразнете клипборда.
- Ако не изберете знак или дума, [Ctrl] + [C] копира целия ред в клипборда.
- С [Ctrl] + [V] можете да поставите предварително копирания изходен текст от клипборда.
- Практически: [Ctrl] + [V] + [Shift] форматира копирания текст директно след импортирането.
Пряк път 2: Изтриване с помощта на клавишна комбинация
- Разбира се, можете първо да изтриете с помощта на (контекстното) меню или клавиша [Del].
- Ако обаче искате да изтриете цял ред, можете да направите това с комбинацията от клавиши [Ctrl] + [E], без да се налага да маркирате реда.
Пряк път 3: Коментирайте в Netbeans
Ако искате да премахнете ред от програмния поток, но не искате да го изтриете, следващият пряк път помага:
- С [Ctrl] + [Shift] + [C] можете да активирате командата „Превключване на коментар“, за да коментирате бързо избраните редове или да премахнете коментарите.
Пряк път 4: Преместете линии с комбинация от клавиши
С правилните клавишни комбинации можете лесно да местите, премествате и отстъпвате линии.
- Използвайте клавишите със стрелки и [Alt] + [Shift], за да преместите текущите или избрани линии нагоре или надолу или да ги преместите навътре или навън.
Пряк път 5: Правоъгълен избор в редактора на Netbeans
В допълнение към класическия избор на символи и линии, текстовите редактори имат и правоъгълен избор (проверен за v. 7.1).
- Първо натиснете [Ctrl] + [Shift] + [R], за да активирате правоъгълния избор (Забележка: Същата комбинация деактивира и избора).
- Вече можете да маркирате правоъгълна зона в изходния код с мишката или клавишите със стрелки в комбинация с [Shift].
- Вече можете да изтриете или копирате избрания текст в областта, но и да го замените, като въведете нови данни.
Пряк път 6: Бързо форматиране в Netbeans
Бързото форматиране на нещо е важно за възстановяване на структурата и реда. Работи така:
- С [Ctrl] + [Shift] + [F] можете да преформатирате всичко (ако селекцията липсва) или избраната област.
Пряк път 7: Хипервръзки на Netbeans за класове, методи и полета
Дори различни хипервръзки могат да бъдат зададени бързо и лесно с помощта на обикновена комбинация от клавиши.
- Задръжте клавиша [Ctrl] и преместете показалеца на мишката върху име - метод, поле или име на клас.
- Сега се появява хипервръзка, която можете да щракнете и да преминете към декларацията. Декларацията може да отвори нов редактор.
Пряк път 8: Преминете към номера на реда с комбинация от клавиши
Със следващия пряк път можете бързо да се придвижвате през различните линии.
- С [Ctrl] + [G] и командата "Goto Linenumber" можете да отворите диалогов прозорец и след това да въведете номер на ред там.
- След като щракнете върху бутона за потвърждение, курсорът автоматично прескача до посочения ред.
Пряк път 9: Клас за търсене в Netbeans
- Стартирайте диалоговия прозорец за търсене за имена на класове с [Ctrl] + [O] (команда "Goto Type").
- Сега въведете дума за търсене в диалоговия прозорец и щракнете двукратно върху един от резултатите, за да отворите файла.
- [Ctrl] + [Shift] + [1] показва този файл в структурата на проекта.
Пряк път 10: Увеличете максимално редактора в Netbeans
За мнозина редакторът е твърде малък - можете да го увеличите максимално, като щракнете двукратно върху съответния раздел, но също така можете да си спестите трудоемкото щракване.
- Тук пряк път [Ctrl] + [ESC] помага за бързо увеличаване на прозореца. Можете отново да затворите раздела, като въведете отново комбинацията.
Netbeans: Проблеми с клавишните комбинации и преките пътища
Точно както горните клавишни комбинации могат да улеснят живота ви, бързо ще доведе до проблеми и усложнения за някои потребители - известни са следните основни проблеми:
- Преки пътища, които се въвеждат с [Alt] + [Shift] или [Alt] + [Shift], не работят в Ubuntu системи. Системата вече използва [Alt] + [Shift] като съкращение. Можете лесно да промените тези преки пътища в "Инструменти", "Опции" и "Keymap".
- Немските потребители или поне тези с немска подредба на ключовете бързо ще забележат, че общите преки пътища, въведени от [Shift], [Shift] или [AltGr], като запетаи, запетайки, звездички или скоби, се сблъскват с ключовите комбинации за Netbeans. Съответно коригирайте съкращенията под „Инструменти“, „Опции“ и „Keymap“.
В друга статия ви представяме подобни на Netbeans и добри компилатори за C и C ++.
$config[ads_text5] not found