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

Summary: new line on ctrl enter
Product: editor Reporter: someperson
Component: Key bindingsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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