blob: 785a568f9fad84906b71db23b02ed865372eb061 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>NetBeans IDE - Editing and Refactoring</title>
<meta http-equiv="content-language" content="en">
<meta name="description" content="DESCRIPTION HERE">
<link rel="stylesheet" type="text/css" href="../../features.css">
<link rel="stylesheet" type="text/css" href="/images_www/js/colorbox/colorbox.css">
</head>
<body>
<script type="text/javascript" src="/images_www/js/colorbox/jquery.colorbox-min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('a.cbox').colorbox({rel:'cbox',opacity:0.7});
});
</script>
<div style="margin:10px 20px 0px 0px;">
<h1>Editing and Refactoring</h1>
<p class="intro">
<a href="../../images_www/v7/3/features/ide-editor-full.png"><img
src="../../images_www/v7/3/features/ide-editor-cut.png"
alt="Java editor features in NetBeans IDE" width="640"
style="border: 1px solid;"
height="285"><br>
<span class="font-11">Click image for fullscreen preview</span></a>
</p>
<p class="intro">
The language-aware NetBeans editor detects errors while
you type and assists you with documentation popups and smart code
completion&#8212;all with the speed and simplicity of your favorite text
editor.
</p>
<div class="line">&nbsp;</div>
<!-- left text section start -->
<a name="o1"></a>
<span id="im1" class="overview-right"><a href="../../images_www/v7/3/features/ide-editor-templates-full.png" class="cbox" title="Templates and Sample Applications"><img src="../../images_www/v7/3/features/ide-editor-templates-cut.png" alt="" /></a></span>
<h2>Editors and File Templates</h2>
<p> The editor in NetBeans IDE is much more than a text editor. The NetBeans editor
indents lines, matches words and brackets, and highlights source code
syntactically and semantically.</p>
<p>The editor supports several languages
including Java, C/C++, XML, HTML, PHP, Groovy, CSS, and JavaScript.
It can be extended to support other languages.</p>
<p>The
IDE provides file templates for each
of the technologies it supports, such as Java file templates,
HTML file templates, and JavaScript file templates.</p>
<p><a href="../../kb/index.html" class="arr-link">
NetBeans Technology Learning Trails</a></p>
<div class="line">&nbsp;</div>
<!-- left text section end -->
<table>
<tr>
<td class="valign-top"><h2>Static Analysis</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Live Parsing</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Refactoring</h2></td>
</tr>
<tr>
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-findbugs.png" class="box "
alt="FindBugs"/></span><br/>
The cost of buggy code increases the longer it remains unfixed.
The IDE gives you static code analysis tools, in particular,
integration with the popular open source Java FindBugs tool.
<br/><br/>
</p>
</td>
<!--<td>&nbsp;</td>-->
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-parsing.png" class="box "
alt="FindBugs"/></span><br/>
The IDE parses the source code live while you type. The
editor marks errors, highlights occurrences,
shows compiler hints, quick fixes,
warnings, and language documentation. <br/><br/>
</p>
</td>
<!--<td>&nbsp;&nbsp;&nbsp;</td>-->
<td class="valign-top" style="width:33%">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-refactoring.png" class="box "
alt="FindBugs"/></span><br/>
The IDE's refactoring tools allow you to restructure code without breaking it.
The Inspect & Transform tool enables you to run powerful inspections
across your codebase, while automatically fixing your code.
<br/><br/>
</p>
</td>
</tr>
<tr>
<td class="valign-top"><h2>Completion</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Navigation</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Insertion</h2></td>
</tr>
<tr>
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-completion.png" class="box "
alt="FindBugs"/></span><br/>
The editor provides automatic code completion in several languages,
including Java, C/C++, PHP, Groovy, XML, HTML, CSS, and JavaScript.
</p>
</td>
<!--<td>&nbsp;</td>-->
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-navigate.png" class="box "
alt="FindBugs"/></span><br/>
Navigate to any file, type, or symbol using standard text, camel
case format, or wild cards, and do case sensitive
searches throughout your codebase.
</p>
</td>
<!--<td>&nbsp;&nbsp;&nbsp;</td>-->
<td class="valign-top" style="width:33%">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-codegenerator.png" class="box "
alt="FindBugs"/></span><br/>
The editor can generate common code snippets for you within the editor.
You can define code templates for common pieces of code and
add record macros as you type.
<br/><br/>
</p>
</td>
</tr>
<tr>
<td class="valign-top"><h2>Suggestion</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Inspection</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Customization</h2></td>
</tr>
<tr>
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-hints.png" class="box "
alt="FindBugs"/></span><br/>
The IDE performs source code analysis and offers an extensive set of
hints to quickly fix or enhance your code.
</p>
</td>
<!--<td>&nbsp;</td>-->
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-hierarchy.png" class="box "
alt="FindBugs"/></span><br/>
Inspect the members and supertype or subtype hierarchies of any file in the Navigator window
and Hierarchy window,
which provide filters to control the level of detail displayed.
</p>
</td>
<!--<td>&nbsp;&nbsp;&nbsp;</td>-->
<td class="valign-top" style="width:33%">
<p>
<span class="overview-centre" id="im8"><img
src="../../images_www/v7/3/features/ide-editor-customizations.png" class="box "
alt="FindBugs"/></span><br/>
The behavior and display of the languages in the editor can be customized, including
its code completion, documentation view, keyboard shortcuts,
fonts, and colors.
<br/><br/>
</p>
</td>
</tr>
</table>
<h2>See Also</h2>
<ul class="bigger">
<li><a href="/community/releases/73/index.html">NetBeans IDE 7.3 Release Page</a> for a list of specific features in the latest stable release.</li>
<li>Get more details about features of the latest stable release on the <a href="http://wiki.netbeans.org/NewAndNoteworthyNB73">NetBeans IDE 7.3 New and Noteworthy page</a>.</li>
</ul>
</div>
</body>
</html>