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 227198 - Ctrl+SEMICOLON does not end line in embedded JavaScript
Summary: Ctrl+SEMICOLON does not end line in embedded JavaScript
Status: RESOLVED DUPLICATE of bug 218962
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-08 08:49 UTC by nguyendinhdoan
Modified: 2015-08-04 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (71.49 KB, text/plain)
2013-03-08 08:49 UTC, nguyendinhdoan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nguyendinhdoan 2013-03-08 08:49:13 UTC
Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01

1. The shortcut key: Ctrl ;
In javascript file: its work fine with this version but in html file, in the <script> tag, it does not work. Please fix this.

2. Reformat code: Ctrl Alt Shift F
I have this code:
function abc() {
// haha
    if (x === 1) {

    }
}

After I do reformat code, nothing happen. I must insert a new space before // haha then It works. Like this:
function abc() {
 // haha
    if (x === 1) {

    }
}

This happens both in html <script> and .js file.
Comment 1 nguyendinhdoan 2013-03-08 08:49:30 UTC
Created attachment 132366 [details]
IDE log
Comment 2 nguyendinhdoan 2013-03-08 08:51:37 UTC
sorry, just Alt Shift F for reformatting code :d
Comment 3 Vladimir Riha 2013-03-08 14:10:46 UTC
Hi, thanks for reporting, but please do not report several problems into a single issue.

As for #1: Reproducible, in embedded JS code Ctrl+SEMICOLON does not complete lines

As for #2: This is as designed that comment at the beginning line is not shifted (due to Toggle comment feature). 


So let's keep this issue about #1, reassigning to JavaScript|Editor
Comment 4 Petr Hejl 2013-08-01 08:45:28 UTC
I think it's because there is no insert semicolon action registered for html. For example same case in php works because there is insert semicolon action in php.
Comment 5 Petr Pisl 2015-08-04 14:43:37 UTC

*** This bug has been marked as a duplicate of bug 218962 ***