This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257379 - new line on ctrl enter
Summary: new line on ctrl enter
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-04 01:02 UTC by someperson
Modified: 2016-01-04 01:02 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description someperson 2016-01-04 01:02:14 UTC
in some other editors, there's a feature that when you ctrl+enter, it inserts a representative new line in the given language

like, when coding html it would insert "<br />" 

someone here http://stackoverflow.com/questions/28525498/netbeans-8-fast-insert-tag-br has suggested a work-around via macros, but it's not too practical, because it allows only one type of new line

it would be really useful if after hitting some given shortcut (hard coding ctrl+tab would be a bad idea i think), the corresponding new line would be inserted on different types of files

like, <br /> for htmls, \n for c++ or php, etc.

pspad http://www.pspad.com/en/ even goes as far as having the option to define your own string output after hitting the shortcut depending on the file type you're editing