If you love (or have to) code in Netbeans and in JavaScript, here - TopicsExpress



          

If you love (or have to) code in Netbeans and in JavaScript, here is a nice tip for instantly dumping (and pretty print) a variable in browser console (and save some keystrokes). Create a macro in Netbeans and assign a keyboard shortcut like "Ctrl+Alt+D" to that macro. /////////////////////////////////////////////////////////// select-identifier copy-to-clipboard caret-end-line insert-break "console.log("" paste-from-clipboard " = " + JSON.stringify(" paste-from-clipboard ", null, 2));" /////////////////////////////////////////////////////////// Next time you cursor is on top a JS variable, just press the shortcut key, a line like following will be automatically inserted after the line you are working on: console.log(JSON.stringify(myVariable, null, 2));
Posted on: Thu, 20 Jun 2013 15:45:49 +0000

Trending Topics



Recently Viewed Topics




© 2015