Where is netbeans configuration file
A red preview box indicates the new position of the window. Release the mouse button to drop the window when the red preview box indicates the window is in the new desired position. You can create a clone of a tab if you want to open two tabs with the same file. If you drag one of the tabs to split the editor view or create a tab group you can view different parts of the same file simultaneously.
Click the tab of the cloned document and drag it to the part of the window where you want the copy to be placed. The IDE provides comprehensive control over how toolbars are presented. You can add and remove toolbars and position and control the visibility and contents of toolbars. You can also create customized toolbar configurations. The submenu displays all the toolbars in the IDE.
Alternatively, right-click the empty space in the toolbar area and choose the toolbar name from the pop-up menu. To find the name of a toolbar, rest the pointer on the textured drag area of the toolbar to display a tool tip with the toolbar name.
Click in the textured drag area on the left side of the toolbar and drag the toolbar to the desired location. Select the button of the action you want to add to the IDE toolbar and drag and drop the button onto the toolbar in the main window. In the main window, click and drag the toolbar button above the toolbar. Alternatively, you can drag the button from the toolbar into the Customize Toolbars window.
You can edit keyboard settings for individual commands or switch between preconfigured sets of keyboard shortcuts. The shortcut sets are designed for users that are already used to the keyboard shortcuts of other editors and IDEs. To add or remove a keyboard shortcut for a menu command:. Double-click in the text field in the Shortcut column of the command and type the new keyboard shortcut.
As you press the key sequence, the correct syntax for that sequence automatically appears in the text field. You can only specify a keyboard shortcut that is not being used by another command. You can use the Options window to switch between any of the existing keyboard shortcuts sets. The IDE includes several sets of keyboard shortcuts with shortcut mappings that correspond to the shortcuts in other editors and IDEs. You can configure the IDE to have multiple sets of keyboard shortcuts.
You can use the Options window to create custom sets of keyboard shortcuts. Click Duplicate to duplicate the currently selected shortcut set. Then edit the shortcuts in the new copy. There are keyboard shortcuts available to activate the following menu commands and other general commands:. Table File Menu. Table Edit Menu. Table View Menu.
If the currently selected line in the Source Editor represents several folded lines, expands the fold to show all of the lines.
Table Navigate Menu. Table Source Menu. Pops up a context aware menu that you can use to generate common structures such as constructors, getters, and setters. Display editor hints. The IDE informs you when a hint is available when the light bulb is displayed.
Selects the next parameter. You must have a parameter selected highlighted for this shortcut to work. Table Refactor Menu. Table Run Menu.
Deletes all previously compiled files and distributable outputs and builds the main project or the currently selected project if no main project is set.
Compiles the file. If you select a folder, the IDE compiles only the files that are new or have changed since the last compile. Table Debug Menu. Executes one source line of a program. If the line is a method call, executes the entire method then stops. If the line is a method call, executes the program up to the method's first statement and stops. If the line is a method call, executes the methods and returns control to the caller.
Makes the method being called the current call. Only available when a call is selected in the Call Stack window. Makes the calling method the current call. Table Profile Menu. Enables you to start a new profiling session that uses the settings from the previous profiling session. The shortcut for this action is active only when no profiling session is in progress. Opens the Select Profiling Task when a profiling session is in progress. You can modify the profiling task or criteria without stopping the application that you are profiling.
The shortcut invokes this action only when no profiling session is in progress. Table Tools Menu. Table Window Menu. Toggles through the open windows in the order that they were last used. The dialog box displays all open windows and each of the open documents in the Source Editor. Table Help Menu. You can generally open the Source Editor by double-clicking a node in the Projects window, Files window, or Navigator window. The top of the Source Editor has a tab for each open document.
Each tab shows the name of the document. The name of the document is displayed in bold if the document has been modified and has not been saved. You can right-click the tab to open a popup menu that lists commands that can be invoked on the tab. If multiple files are open, you can split the Source Editor view by clicking and dragging the tab.
As you drag to different parts of the editing area, you see a red outline that shows you the location of the new window. When one of these boxes appears, you can drop the document and split the pane. You must close the split file if you want the editor to return to its unsplit state. The editor toolbar is at the top of the Source Editor window.
The toolbar has buttons for various navigating and editing shortcuts, which vary according to the type of file you are editing. Hold the cursor over a button to display a description of the command. Table Icons in Source Editor Toolbar. Toggle between source code and local history views. Local history includes diffs between all save points.
Moves the insertion point to the previous found occurrence of the text that you previously searched for. Find Next Occurrence F3. Moves the insertion point to the next found occurrence of the text that you previously searched for. Previous Bookmark. Next Bookmark. Toggle Bookmark. Start Macro Recording.
Stop Macro Recording. Run XSL. Next Matching. Completes the word you are typing to match the next word in the file that matches the word you are typing. Previous Matching. Completes the word you are typing to match the closest previous word in the file that matches the word you are typing. The left margin displays annotation glyphs that indicate line status, such as breakpoints, the program counter, or build errors.
You can right-click the left margin to display a pop-up menu with a list of commands and options. If you click the left margin of a Java file, a breakpoint is set on the corresponding line. You can click the left margin of a line to remove a breakpoint. For more information about setting breakpoints and other glyphs used by the debugger, see Chapter 9, "Managing Breakpoints. The following table shows some of the annotation glyphs that can appear in the left margin of the Source Editor.
The line contains an error. You can place the mouse pointer over the glyph to display a tooltip with information on the error. The line contains a method that overrides a method from another class. Place your mouse pointer over the glyph to display a tooltip with name of the overridden method's class. This glyph only applies to Java classes. The line contains a method that implements a method from an interface or an abstract class.
Place your mouse pointer over the glyph to display a tooltip with name of the implemented method's class. The line is bookmarked. You can add or remove a bookmark by pressing Ctrl-Shift-M. The line contains a debugging line breakpoint. You can remove the breakpoint by clicking the glyph. You can set another breakpoint by clicking in the left margin next to the line where you want the breakpoint to appear.
The error stripe is the strip to the right of the right scroll bar and contains marks for various things in your file, such as errors, bookmarks, and comments for the To Do list.
The error stripe represents the whole file, not just the lines currently displayed. You can immediately identify whether your file has any errors without having to scroll through the entire file.
You can double-click a mark in the error stripe to jump to the line that the mark refers to. The Source Editor status line is beneath the horizontal scroll bar. The first area of the status line shows the current line number and row number in the form line:row. The text area on the right is used for status messages. Source code displayed in the Source Editor is syntactically colored. For example, all Java keywords are shown in blue and all Java comments in light gray.
Guarded blocks of Java code generated by the GUI Builder have a light blue background and cannot be edited. When the Source Editor is in insert mode, the default insertion point is a vertical bar, and text that you type is inserted. In overwrite mode, the default insertion point is a solid block, and text that you type replaces the existing text.
Whenever the insertion point in the Source Editor is located immediately after a brace, bracket, or parenthesis, the matching brace, bracket, or parenthesis is highlighted. You can set options for the source editor in the Options window.
The Editor category in the Options window contains tabs where you can set options for editor features, including code completion, formatting and folding. You can set options for the colors of text and background colors in the Fonts and Colors category.
The IDE includes several fonts and colors settings that are saved as profiles. You can choose to use one of the default settings profiles or create a custom profile that saves your font and color preferences. Click the Editor category and then click a tab to edit the settings for that feature. How to specify global fonts and colors in the editor:. Select an item in the Category or Highlighting pane and then modify the color or other properties for that element in the right pane of the Options window.
How to create a custom profile for fonts and colors. How to set formatting options for a project:. Right-click the project node in the Projects window and choose Properties. Select Use project specific options in the Formatting panel and specify the options. By default the editor highlights the occurrences of various code symbols and keywords when the insert cursor is located in one of the occurrences.
You can disable the highlighting completely or limit the highlighting to specific elements. How to select types of occurrences to highlight in the editor:. You can disable the highlighting of all types of elements for the specified language by deselecting Mark Occurrences Of Symbol Under Caret. You can use macros in the source editor that can generate common source code snippets or perform common editor tasks.
After you record a macro you can assign a keyboard shortcut to run the macro on the current file. Code Templates are abbreviations that you type into the code and that the editor expands into code blocks.
The templates can include placeholder values. After you expand a code template, you go through the expanded block and replace the placeholder values. The IDE includes default code templates for various languages. You can use the Options window to create, remove and modify code templates. Type in the Description tab to modify the description of the code template. Click OK in the Options window.
In the following table, multikey shortcuts are written in the following format: Ctrl-U, T. To use this shortcut, hold down the Ctrl key and press U, then release both keys and press T. Table Scrolling and Selecting. Moves the insertion point to the highlighted matching bracket. This shortcut only works when the insertion point is immediately after the opening or closing bracket. Selects the block between a pair of brackets.
This shortcut only works when the insertion point is immediately after either the opening or closing bracket. Table Modifying Text. Opens the Internationalize dialog box that you can use to insert an internationalized string at the insertion point. Reverses the case of the selected characters or the character to the right of the insertion point. Table Code Folding. Table Searching for Text.
Table Setting Tabs. Table Using Bookmarks. The launcher reads the netbeans. The netbeans. Table Description of Common Switches. If you later need to revert to the previous JDK, switch to the backed up user directory to ensure that you do not lose any settings. To switch the IDE's user directory, use the --userdir switch that is detailed below.
Selects the given class as the IDE's look and feel. The following are two examples of look and feel classes. Sets the font size, expressed in points, in the IDE's user interface. If this option is not used, the font size is 11 points. If this option is not set on Microsoft Windows systems, the user directory is the one you specified when you first launched the IDE.
Prevents the use of DirectX for rendering. This switch might prevent problems that occur on some Microsoft Windows systems with faulty graphics cards. You can customize the font and color properties that are used in various windows in the IDE. Font properties include the font family, style, variant, weight, and size. Color properties include the color of text, the background color of text, and the color of borders. You can customize the font and color properties that are used to display the pages in the help viewer.
To set fonts and colors for displaying help pages:. The ide. To set fonts and colors for the Output window:. Click the Output tab in the Miscellaneous category. To set fonts and colors for the Terminal:. Click the Terminal tab in the Miscellaneous category. You can minimize startup time and save memory by deactivating the plugins that you do not need.
Deactivated plugins are not deleted from your installation directory, but are simply ignored by the IDE. You can re-activate them at any time. You can also choose to uninstall plugins from the IDE. Uninstalled plugins are removed from your installation directory. To use an uninstalled plugins, you need to install it again. You use the Plugins manager to connect to the update centers to check if there are new plugins or new versions of already installed plugins available.
If new or updated plugins are available, you can select, download, and install them using the Plugins manager. A plugin generally consists of a group of dependent modules. Some IDE plugins are grouped together and referred to as a Feature. Each Feature generally corresponds to a technology and can contain a number of plugins that support that technology. When you activate or deactivate a Feature, the IDE activates or deactivates the corresponding plugins.
When you update a plugin, the update usually consists of updating one or more of the modules that make up the plugin. Some plugins may be dependent on modules in other plugins in order for the functionality to be implemented.
The Plugins manager warns you when this is the case. Deactivating a plugin usually consists of deactivating the individual modules that make up the plugin.
When you use the Plugins manager to update the IDE, the IDE checks the registered update centers to see if there are new plugins or new versions of already installed plugins available. If new or updated plugins are available, you can select, download, and install the plugins using the Plugins manager. You can set the frequency that the IDE checks for updates in the Settings tab of the Plugins manager. The Plugin Installer will check for updates of installed in plugins.
If updates are available, you can step through the installer to install the updates. In addition to the default IDE Update Center, you can choose from several update centers that offer different types of plugins, such as experimental new plugins or old plugins that are no longer in regular distribution. To update installed plugins from the Update Center:. Click the Updates tab to display available updates of installed plugins.
In the left pane, select the plugins you wish to update and click Update. The left pane of the Updates tab displays the installed plugins which have updates available from the update centers. By default, the IDE regularly checks the registered update centers for available updates of installed plugins. If no plugins are displayed in the left pane, it means that no updates were available the last time the IDE checked the update center.
Click the Available Plugins tab to display plugins that are available but not installed. Some plugins may require you to restart the IDE to complete the update process or to activate or deactivate them. If you have already downloaded a plugin's. Click Add Plugins and browse to the location of the downloaded. Select the file and click Open.
Click Install and complete the pages of the installer to install the plugin. If the plugin that you have selected in the file chooser does not appear in the Downloaded tab of the Plugins manager, you probably have the same or a newer version of that plugin already installed.
You can check the Installed tab to verify that the plugin is installed and activated. The IDE enables you to deactivate installed plugins that you do not need to minimize startup time and save memory. You do not need to download the plugins again. To activate or deactivate an installed plugin:. If you want to completely remove a plugin from your local system, select the checkbox for the plugin in the left pane and then click Uninstall.
The following table defines the icons used in the Installed tab of the Plugins manager to indicate the status of plugins. Table Plugin Status Icons. If you are using a multi-user installation of the IDE, you can install a plugin globally so that the plugin is available to all users. The IDE places JAR and docs for globally installed plugins in your installation directory instead of an individual user directory.
Click the Settings tab and then select Force install into shared directories in the Plugin Install Location drop-down list. Click the Available Plugins tab, select the Install checkbox for the plugin and click Install. You can manage the registered update centers in the Settings tab of the Plugins manager.
In addition to the default IDE Update center, you can add other update centers that offer different types of plugins, such as experimental new plugins or old plugins that are no longer in regular distribution.
Deactivate an update center by deselecting the Active checkbox for the update center you wish to deactivate. You can reactivate the update center later if you wish. Edit the details of an update center by selecting the update center in the left pane and clicking Edit in the right pane.
Remove an update center by selecting the update center in the left pane and clicking Remove in the right pane. By default, the IDE periodically checks the update centers for new updates. You can set the interval or specify that the IDE should not automatically check for updates. In the Settings tab of the Plugins manager, choose a frequency from the Check Interval drop-down list. Choose Never if you do not want the IDE to automatically check for updates.
Click Proxy Settings if you need to set any proxy settings needed to enable the IDE to access the update centers. The online help is divided into several help sets.
Most help sets are packaged in a JAR file, while a few help sets are packaged in a zip file. To extract the online help from a JAR file:. Use the jar command-line utility to unpack the JAR file in which you are interested. For jar-file , use the file name of the JAR file from which you want to extract files. The Jar tool makes copies of the files and writes them to the current directory. The directory structure is reproduced according to the package structure in the archive.
The IDE's internationalization tools let you easily insert internationalization strings while you write your code as well as internationalize files that are already written. You can also check resource bundles to make sure each key referenced by your code exists. When you internationalize existing source files, the IDE searches for every customizable occurrence of a quoted text string.
If you decide to internationalize the string, the IDE replaces it with a method call and adds the string to the appropriate resource bundle. You can select from several code formats for generating internationalized strings, or you can use your own custom format.
As you design a form in the GUI Builder, you can have the code generated as internationalized code. To turn on automatic internationalization for a form:. The Internationalize dialog box enables you to replace hard-coded strings in a single file with internationalized strings. If you need to internationalize several Java sources into one or more resource bundles, use the Internationalization wizard. The Internationalize dialog box opens enabling you to edit each string in the file consecutively.
If a resource bundle already exists for the file, the bundle properties file in which the strings are saved is displayed in the Bundle Name field.
The Replace String field also displays a preview of the internationalized string. If no resource bundle exists for the file, the Bundle Name and Replace String fields are empty. You can click the ellipsis If you want to add arguments to the method call, click Arguments. You can only add arguments to the method call if you use the java.
MessageFormat or org. Check that the key and value are correct. By default, the Internationalize dialog box gives the key the same name as the string being replaced. To get information about the highlighted string in the Source Editor, click Info to see the name of the component containing the string and the property that the string is associated with.
The Internationalization wizard enables you to replace hard-coded strings with internationalized strings in multiple files. If you are localizing the source into more than one language, the Internationalization wizard also lets you specify the localized string for multiple locales.
To automatically internationalize strings in multiple source files:. Click Add Source s to add one or more source files to internationalize. Click Next to proceed. Click Select All if you want a single resource bundle to contain the key and value pairs for all the listed sources. To select a resource bundle for specific source files, select the desired sources and click Select Resource.
In the Select Resource dialog box, select the desired. The Init String field gives you a preview of the code that the variable will use to reference the resource bundle. To change this code, click Format and select the desired code format from the Init Code Format Editor. In the Modify Found Strings pane, set the key name and localized values for each of the strings you want to internationalize by entering a new value in the appropriate column.
Use the Source drop-down list to switch between source files. Deselect the checkbox in the first column for any string you do not want to internationalize. To change the code format used to generate the internationalized string or add arguments to the method call, click the ellipsis button The Insert Internationalized String command enables you to add internationalization strings one at a time as you create the source. To insert an internationalized string into your source code:.
In the Source Editor, put the insertion point at the location in the source file where you want to insert an internationalized string.
The Insert Internationalized String dialog box appears enabling you to edit each string in the file consecutively. To choose a different. Click Arguments if you want to add arguments to the method call.
To insert an internationalized string with the GUI Builder:. In the Properties window, select the property that you want to internationalize for example, the text property of jLabel.
If a resource bundle already exists for the source, the bundle properties file into which the internationalized strings will be saved is displayed in the Bundle Name field.
If no. In the dialog box, specify an existing. Click OK to return to the property editor. If you want to change the method used to generate the internationalized string, click the Format button. You can add arguments to the method call only if you use the java. You can check resource bundles for missing key and value pairs by using the Internationalization Test wizard. The wizard looks for all internationalized string keys with a customizable meaning in the source and checks for a corresponding key and value pair in the specified resource bundle.
You can use the wizard to add any missing pairs. To test a bundle for internationalized strings:. Click Add Source s and select one or more source files to test in the Select Sources dialog that appears. Specify the resource bundles for the source files. Click Select All to check one resource bundle for all the listed sources. To select a specific resource bundle for one or more source files, select the desired sources and click Select Resource.
The wizard lists all of the internationalized strings with missing key and value pairs in the selected file. The wizard automatically suggests key names and values for the string.
Deselect the checkbox in the first column for any string you do not want to include in the resource bundle. Change the key name and value for any string by typing a new value in the appropriate column. The java. MessageFormat code format lets you use strings that are constructed dynamically at runtime. The dynamically added elements are stored in an array of objects, which is passed as a parameter to java. You can use the Message Format Arguments dialog box to specify the values of these objects.
You can add arguments when you use the org. To enter substitution parameters for a message format:. Select the java. MessageFormat format or the org.
Then click OK. Use the Add and Remove buttons to add or remove message parameters. When you are done, click OK to close the dialog box. MessageFormat java. A NetBeans project is a group of source files and the settings with which you build, run, and debug those source files.
In the IDE, all development has to take place within a project. For applications that involve large code bases, it is often advantageous to split your application source code into several projects. NetBeans IDE provides wizards that enable you to create projects that are based on project templates. What is User Directory?
Per default, it is a hidden directory called. As the name suggests, userdir is unique per user. Modules can use userdir to store persistent data for example, source and library file databases and indexes.
Also, additional modules installed by the user are typically stored in the userdir. How to find the current user directory? Run the ide and open the about box Help About and switch to 'Details' tab. You will notice an entry for userdir. Sometimes the user directory may get corrupted resulting in strange behaviour like settings not getting saved etc.
Close the IDE. Open the Windows Explorer and rename the [userdir] to something like [userdir]. Run the IDE via the standard desktop icon or start menu item.
The IDE will find that the [userdir] does not exist and will create [userdir]. How to Fix netbeans. Step 1: Restore your PC back to the latest restore point, "snapshot", or backup image before error occurred.
In the search results, find and click System Restore. Follow the steps in the System Restore Wizard to choose a relevant restore point.
Restore your computer to that backup image. If the Step 1 fails to resolve the netbeans. Step 2: If recently installed NetBeans or related software , uninstall then try reinstalling NetBeans software. In the search results, find and click " Add or Remove Programs " Find the entry for NetBeans 9 and click " Uninstall " Follow the prompts for uninstallation.
After the software has been fully uninstalled, restart your PC and reinstall NetBeans software. If this Step 2 fails as well, please proceed to the Step 3 below. In the Windows Update dialog box, click " Check for Updates " or similar button depending on your Windows version If updates are available for download, click " Install Updates ".
After the update is completed, restart your PC. Please follow the steps below to download and properly replace you file: Locate your Windows operating system version in the list of below "Download netbeans.
Click the appropriate "Download Now" button and download your Windows file version. Download netbeans. Files Related to netbeans. Other Files Related to netbeans. Generic Configuration. NetBeans 9.
0コメント