In Eclipse, one can choose a File in Editor, right click and hight-light the file in Project Explorer. That will expand the tree, and one can see the file highlighted.
I'm wondering how one can accomplish the same in Intellij IDEA.
There is a shortcut: ALT + F1 then select 1.Project View.
Or you can press Scroll from Source button:
If you're a fan of keyboard shortcuts like me, you can also assign one via Settings - Keymap
Adding to Ruslan answer, you can also decide to automate the process and keep the Project ToolWindow always in sync with the currently opened editor.
Just tick the Autoscroll * menu items.
Related
I am able to copy text from other programs and paste it to Android Studio. I am able to right click and copy selected text. I am able to cut text and paste it using shortcut. But while using shortcut Ctrl + C to copy text I am often unable to copy. This is very annoying problem. Does anyone here knows how to solve it?
Android Studio (like all JetBrains IDEs) is very configurable.
Check its Keyboard Shortcuts to see if Ctrl+C is a shortcut to the text copy command in text panes:
Preferences > Keymap
Click the second magnifying glass icon ("Find actions by shortcut").
Type Ctrl+C (or Cmd+C). --> Is it mapped to Main Menu > Edit > Copy?
Type copy into the magnifying glass icon filter text field. --> Look through the different commands and their shortcuts.
I think you installed IdeaVim in your Android Studio. Please remove this, restart and try again. Hope it will work.
You can check IdeaVim plugin is installed or not in Setting->Plugins
Hi I found this example of pdfbox using annotation:
https://svn.apache.org/repos/asf/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/AddAnnotations.java
When I try to run it in netbeans, nothing happens except to print in output:
Usage: add_annotation_exp1.Add_annotation_exp1$AddAnnotations
Not sure what I am doing wrong
There are two possible solutions (based on Netbeans 8.2):
1)
In the main method, add this at the beginning: args = new String[]{"c:/path/filename.pdf"}; and then build the subproject and then press SHIFT F6 to run, or right-click in the editor pane and choose "Run File". (If the subproject is open then you can skip the build step)
2)
Go to the subproject properties (right-click on the left pane on "Apache PDFBox examples"), "Properties". A dialog box will appear. Choose "run" in the left pane. In the field "Main Class" enter org.apache.pdfbox.examples.pdmodel.AddAnnotations (or use the "Browse..." button), and in the field "Arguments" enter your file name with the path. Use quotes if there are spaces in the path. Then run by clicking the right mouse key on the subproject and choose "Run".
I'm new in java and found this after importing project
How can i solve it?
Go to Window > Show View > Other.... Choose General > Problems or search for Problems and add it. Look for the exact reason for red marks on your packages.
Update
Looks like your source folder is misplaced. Follow the steps below:
Right click on the project, go to Properties
Choose Java Build Path on the left pane.
Click on <Project_name>/src and click Remove
Click on Add Folder, choose check boxes (if found) java & resources under the trees src>main and src>test
Click OK and then OK on Properties dialog.
Image reference:
I have a weird occurance and can't eclipse.
Somehow, Eclipse does not show the SyntaxHighlighting for one File, but for all the others:
Did some else experience this problem once?
How can I fix this?
I allready tried closing and restarting Eclipse, but it ain't work!
If only one file that having this problem, most likely you accidentally open the file with Text Editor. Eclipse will remember that last editor that you use to open the file. Right click on the file at explorer list, at Popup menu, select Open With > JSP Editor.
At Project > Properties > Java Build Path > Libraries tab
you click Add Jars button, you will see the JAR Selection dialog.
I like to open this JAR Selection dialog on my plugin code.
How to open this?
With the Eclipse RCP edition (which you must have since you are developing a plugin), you can use the Plugin Spy (Alt+Shift+F1) and see what exact class you need:
alt text http://img541.imageshack.us/img541/2232/eclipsetreesel.png
It is based on org.eclipse.jdt.internal.ui.viewsupport.FilteredElementTreeSelectionDialog (strangely absent from the sources of org.eclipse.jdt.internal.ui.viewsupport), derived from org.eclipse.ui.dialogs.ElementTreeSelectionDialog.
If you want to see how it is opened, you need to have a look to the global window opening that dialog:
alt text http://img41.imageshack.us/img41/1903/eclipselibclass.png
It is the org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage, from which you can infer the various action classes associated with the button and see how it works.