NewAndNoteworthyNB82

Revision as of 09:31, 6 July 2016 by Ilia (Talk | contribs)

All the features of NetBeans IDE 8.2 are in the process of being added to this page, which is a work in progress.

The release schedule of NetBeans IDE 8.2 is here: http://wiki.netbeans.org/NetBeans_82

Note: NetBeans IDE 9, scheduled to be released together with Java 9, will focus heavily on Java, i.e., see these links:

Contents

Editor Multicarets

File:MultiCaret.png

Shortcuts to work with multiple carets in NB editor

Description Shortcut (win/linux) Shortcut (mac)
Add caret and enter multi-caret mode Ctrl+Shift+click Ctrl+Shift+click
Remove last added caret Ctrl+Shift+J Ctrl+Shift+G
Add caret for the next occurence and enter multi-caret mode Ctrl+J Ctrl+G
Add caret for all occurences and enter multi-caret mode Ctrl+Alt+Shift+J Ctrl+Cmd+G
Add caret on previous line and enter multi-caret mode Alt+Shift+[ Alt+Shift+[
Add caret on next line and enter multi-caret mode Alt+Shift+] Alt+Shift+]
Paste clipboard content as lines over the multiple carets Ctrl+Shift+L Cmd+Shift+L
Remove all extra carets and return to normal mode Escape Escape

Media:MultiCaret.webm

HTML 5

Grunt/Gulp

  • Gulp/Grunt tasks are now available also from the Navigator

Image:Nb82_html5_navigator_gulp_grunt.png

  • Completely new and much more powerful way to define advanced/custom tasks

Image:Nb82_html5_gulp_advanced.png

  • Support for Grunt directories with extra tasks (the --tasks parameter)

Image:Nb82_html5_grunt_tasks.png

PHP

PHP 7 Support

Support for PHP 7, namely:

  • Return type declarations

Image:Nb82_php_php7_02.png

  • Scalar type declarations

Image:Nb82_php_php7_03.png

  • Combined comparison (spaceship) and null coalesce operators

Image:Nb82_php_php7_04.png

  • Group use declarations

Image:Nb82_php_php7_05.png

  • Anonymous classes

Image:Nb82_php_php7_06.png

  • Generator delegation

Image:Nb82_php_php7_07.png

  • PHP version in Project Properties dialog

Image:Nb82_php_php7_01.png

Editor

  • Spellchecker for PHPDoc comments

Image:Nb82_php_editor_spellchecker.png

  • Support for @return $this

Image:Nb82_php_editor_return_this.png

  • Support for {@inheritdoc} tag

Image:Nb82_php_editor_inheritdoc.png

  • Code completion for custom code templates

Image:Nb82_php_editor_php_templates.png

Project

  • Custom annotations specific for PHP project can be defined. These annotations are available in code completion like the globally specified ones.

Image:Nb82_php_project_annotations.png

Symfony

  • Symfony 3 support

Image:Nb82_php_sf3.png

  • Navigate to Action/View (Symfony 2 & Symfony 3)

Image:Nb82_php_sf_navigate_1.png Image:Nb82_php_sf_navigate_2.png

PHPUnit

  • Support for PHPUnit 5
  • Continuous test results

Image:Nb82_php_phpunit5_results.png

  • Possibility to test project using just phpunit command

Image:Nb82_php_phpunit5.png

Code Sniffer

  • Support for phpcs.xml configuration file

FTP Support

  • Possibility to assign external IP address

Image:Nb82_php_ftp_external_ip.png

Docker

Brand new support for Docker right inside your NetBeans.

Control

  • Docker instance registration.

Image:Docker1.png

  • Control multiple local or remote instances from the IDE.

Image:Docker2.png

  • Perform common actions without leaving IDE.

Image:Docker3.png

  • Full terminal and log support.

Image:Docker4.png

  • Pull new images from comfortable dialog.

Image:Docker5.png

  • Container management.

Image:Docker6.png

Editor

  • A Dockerfile may be built in the IDE.

Image:Docker8.png

  • IDE provides the Dockerfile editor with syntax highlighting.

Image:Docker7.png

Debugger

Source Maps Support

Web client JavaScript debugger and node.js debugger is using generated source maps to allow debugging in the original source files.

Pin Watches

Watches may not only be shown in Variables/Watches window, but also be pinned into an editor area.

When you hover your mouse over a variable or a selection, a tooltip with it' s value is shown. The tooltip now contains a pin icon, which when clicked, creat es a watch pinned into the editor.

Image:PinTltp.png

The pin watch window is displayed instead of the tooltip. It's location can be adjusted by dragging with a mouse.

Image:PinWatch.png

The watch updates it's value like a watch in the watches window, but in addition to that, it keeps the last known value, even after the debugging session finishes.

The pin watch window contains two icons on the right side: comment icon and close icon. Clicking on the comment icon shows a text field where you can place comments about this particular watch.

Image:PinWatchComment.png

When the pin watch displays structured values, it shows an expansion icon on the left side. When expanded, a view with it's children is shown:

Image:PinWatchExpanded.png

Variables/Watches window does not show the watches that are pinned into the editor by default, but it's possible to view them there as well, via "Show Pinned Watches" context action.

Image:ShowPinnedWatch.png

Java Profiler

SQL Queries Profiling

New profiling mode SQL Queries has been added to enable profiling calls from Java processes to databases using a JDBC connection. The profiler displays live list of executed SQL queries with times and execution counts, including the invocation paths. Filtering based on statement type, command type and related tables is available. The collected data can be saved to a snapshot for offline analysis.

Image:Queries.png

Colored Profiling Results

The profiler now enables coloring profiling results based on user-defined filters. This is especially useful for SQL profiling to visually filter out Java EE frameworks calls by displaying their results in gray, but can be used for any other frameworks and user classes. The defined filters can be also easily added to results filters or instrumentation filters.

Image:Filters.png

JavaScript

This release brings mainly support of ECMA Script 6 and some small improvements of current features. The all basic new features from ECMA Script 6 are supported now.

Generators

In navigator window the generator is marked with '*' badge.

Image:Generator-function.png

Example, when the generator is defined as private and priviliged methods.

Image:Generator-PropertyOfObjectLiteral.png

Generator as private and priviliged methods

Image:Generator-PrivateAndPriviligedMethods.png

Generator as a class method

Image:Generator-ClassMethod.png

NetBeans offers code completion with documentation for Generators. You can see on the following pictures code completion for generator methods like 'next', 'return' and 'throw'. Also offer property 'done' and 'value' of the result object that is returned from the 'next' method.

Image:Generator-Next.png Image:Generator-Return.png Image:Generator-Throw.png Image:Generator-Next.done.png Image:Generator-Next.Value.png

Shorthand property names

NetBeans now understands to shorthand property names in object initializers.

First example shows that the IDE knows about the properties of object 'o' and that the property 'c' is a object with its properties. NetBeans offer the right properties of 'o.c', user can simple refactor the properties etc.

Image:ObjectInitializers-PropertyNames.png

The next example shows that NetBeans understands to new possible written way of method names

Image:ObjectInitiliazer-MethodNames.png

and also understands the computed property names. The computed property names are not offered in cc and are not displayed in the navigator.

Image:ObjectInitializer-ComputedNames.png

Constants

NetBeans is able to handle constants, display in navigator, code completion etc.

Image:Constant.png

Template literals

NetBeans is able to handle template literals. Also there is implemented support of the javascript expressions inside template literals. In these expressions works everything as usual (code completion, mark occurrences, go to declaration, etc.).

Image:TemplateLiterals-CustomInterpolation.png


New Number Literals

ECMA Script 6 brings new hexa, binary and octal literals. NetBeans mark these literals with bold gray letter x, b and o. This can be changed in editor options. Also NetBeans offers code completion for these literals.

Image:NumberLiterals.png

String Literals and RegExp Literals

This is not ECMA6 Script specific feature, but now NetBeans offer code completion after string and regexp literals.

Image:CodeCompletionForStringLiterals.png Image:CodeCompletionForRegExpLiterals.png

Destructuring Assignment

Simple Array Destructuring Assignment

Image:ArrayDestructuringAssignment01.png

Array Destructuring Assignment with Default Values

Image:ArrayDestructuringAssignment02.png

Array Destructuring Assignment from a Function

Image:ArrayDestructuringAssignment03.png

Swap values of two variables

Image:ArrayDestructuringAssignmentSwap.png

Simple Object Destructuring Assignment

Image:ObjectDestructuringAssignment01.png

Object Destructuring Assignment without a Declaration

Image:ObjectDestructuringAssignment02.png Image:ObjectDestructuringAssignment03.png

Object Destructuring Assignment, when a property is not defined

Image:ObjectDestructuringAssignment04.png

Object destructuring assignment to new variable names

Image:ObjectDestructuringAssignment05.png

Setting a function parameter's default value

Image:DestructuringAssignmendAsParameter.png

Supporting modules

NetBeans now understands the modules according ECMA6 Script specification. The picture below shows that user also can navigate to the file from which are imported objects and properties.

Image:GoToImportedFile.png

Object Property Assignment

NetBeans are able to handle creating properties through Object.assign() method as is shown on the picture below.

Image:ObjectPropertyAssignment.png


Default Parameter Values

NetBeans handles default parameter values and use it to obtain information about the type of the parameter as is displayed on the pictures below.

Image:DefaultParams01.png Image:DefaultParams02.png

Block Scope Declarations

NetBeans handles block scope declarations of functions and variables.

Image:BlockScopeFunction.png Image:BlockScopeVariables.png

C/C++

UI for Run/Debug launchers

launcher.properties is a file located in nbproject and used to manage Run/Debug command configurations. Now it's possible to manage these configurations using the new UI. To open the configuration window click "Manage Launchers..." from a project's context menu. After you create necessary launchers you will be able to select how to Run or Debug your project from it's context menu.

Image:nb82_cnd_launchers.png Image:nb82_cnd_launchers_2.png

Extracting toolchain dir from PATH var

Image:nb82_cnd_toolchain.png

Auto-detection of correct compiler used by user's build system

Image:nb82_cnd_compiler.png

Env variable in text fields

Image:nb82_cnd_env.png

Build analyzer based on tool collection wrapper

Image:nb82_cnd_wrapper.png

Terminal extensions

Open Files in Editor from terminal

Simply type "ideopen file1 file2..." and IDE will open specified files in Editor. It's even more useful feature in case you are using a Remote Terminal.

Image:nb82_cnd_ideopen.png

Shortcuts support

Terminal is able to

  • Switch tabs using Alt+1 .. Alt+0
  • Open new tabs with Ctrl+Alt+Shift+T shortcut (by default)

It's a convenient way to work with tabs keyboard only.

Allow terminal to open hyperlinks

Terminal able to open links to files with absolute paths now. You can print a hyperlink in terminal with an escape sequence. Example of such sequence: fprintf(stdout, "(\033]10;%s;%s\007)]\n", "/home/ilia/NetBeansProjects/CppApplication_48/main.cpp:20", "main.cpp:20"); where :lineNumber is optional.

Search in terminal

Search feature is implemented in Terminal now. You can lookup previous (Shift + F3) and next (F3, Enter) occurrences, close the Find Bar with (ESC).

Image:nb82_cnd_find.png

"Pin watches" support for C/C++ Debugger=

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo