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 203759 - Shortcuts card for php and javascript
Summary: Shortcuts card for php and javascript
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 11:45 UTC by nguyendinhdoan
Modified: 2012-09-18 14:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nguyendinhdoan 2011-10-15 11:45:06 UTC
Hi,

I am using Netbeans for developing my php project and I am getting troubles with Netbean's shorcut cards. It works very well in Java projects but not in php and javascript (I just tested two types :d).

I want to know how to apply these functions in coding with php and js. Such as Ctrl + ; to insert a ; at the end of line. Especially, "reformat code" function which I use many times and It now does not work true. 

For example, I created a .js file, then create a function like this:
function test() {
//    alert("hello1");
    alert("hello2");
}

Then I click to line 1 and press "Ctrl + /" to uncomment => work fine
Now I press "Alt + Shift + F" (to reformat code), it becomes:
function test() {
    //    alert("hello1");
    alert("hello2");
}

So far, I cannot use "Ctrl /" to uncomment the line 1 and it becomes:
function test() {
//    //    alert("hello1");
    alert("hello2");
}

Please let me how to fix :d
Thanks !
Comment 1 Petr Pisl 2011-10-17 10:21:30 UTC
The issue with CTRL+semicolon is language specific action. For PHP I have entered new issue # 203813. 

The formatting is also language specific. Your issue is in JS. Reassigning.
Comment 2 Petr Hejl 2012-09-18 14:17:46 UTC
This has been already fixed for 7.3.