Ctrl +c and Ctrl +v is not working in android studio - java

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

Related

How to add "About" tab on Mac

On a Mac, there is a button on the screen menu bar that is the name of an application. For example, for terminal, there is a button at the top of the screen labeled Terminal. When you click it, there is a options that says About Terminal. When this is clicked, it shows information about the application. Here is a picture:
How can I add this to my application in Java? When I do this now, this is what shows up:
As you can see, it shows the Java version etc. Is there a way to change this into a more professional format?
If your Window extends JFrame, just use the setIconImage or setIconImages method to set your icon.
From the corresponding JavaDoc:
Sets the image to be displayed as the icon for this window.
The other information is read from the executable metadata. If you run your app using Java directly, you can't change it. For my applications, I generate an executable file using Install4J, where the installer adds the metadata to the generated executable.
Thanks, I've solved the problem. It was a simple mistake, when I packaged it together using a packager it worked fine. Thanks for all your help!

Intellij highlight file in Project Explorer

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.

How do I undo zoom in in Eclipse?

I use MacOS High Siearra. My Eclipse IDE version is Oxygen 3(4.3.2). I have a big problem.
I accidentally shrunk my console area and text in the text field (using Command (-)) but now when I turn the screen back on, I close my tabs and when I reopen them the page opens in the smallest size. I have to fix it every time.
Also, I have not been able to make my console screen larger again if using a mouse. I'm glad you helped me. I also thought about reinstalling the IDE, but when I delete it from the application screen and install it again, I still have the same problem. I think I could not delete it with all the system folders. Please help me ... Thanks
These settings are stored in the workspace metadata which on mac is at location:
<your root path>/eclipse-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings . Remove the intended setting from there and restart eclipse.
For example, my editor settings are in the file org.eclipse.ui.editors.prefs with content:
eclipse.preferences.version=1
lineNumberRuler=true
overviewRuler_migration=migrated_3.1
spellingEnabled=true

Run my java app (System Tray) when Windows starts

I have searched on the net, but I have not found anything for my case.
I have created an application, that shows only in the SystemTray (icon) when you start. I want to run the jar file or the exe automatically when windows starts.
I would like to do this via code or automatically directly from my app. A menu item (for example) that the user could click on that option, if desired. I searched the internet but have not found anything.
Thank you in advance
Thank you very much
Only code Java or Bat
I think you can register your application as a system service, set the starttype auto start
Follow the below steps for windows 7
1)Click the Start windows button , click All Programs, right-click the Startup folder, and then click Open.
2) Open the location that contains the item you want to create a shortcut to.
3) Right-click the item, and then click Create Shortcut. The new shortcut appears in the same location as the original item.
4) Drag the shortcut into the Startup folder.
The next time you start Windows, the program will run automatically.
I got from this link

how to open jar selection dialog at the eclipse pulgin code

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.

Categories