The visual studio run code is should as default like this
But, I don't know why this is showing for me in the .JAVA files.
How can I fix this?
The run code button isn't there by default (or at least it did not show up for me by default). It is actually an extension called "Code Runner", you can find it in the extensions:marketplace tab.
Related
Everything was good. Today, I opened Android Studio, and every kotlin class code and even layout and value files turned into another format like XML. I don't know what kind of strange reason it is.
I have been trying to fix this for 2 days now. even though I opened my files into some other editors(sublime, notepad)but the problem is still there.
I am attaching some screenshots MainActivity.kt.
I also tried these couple of things below
File > Sync project with Gradle files. Result: didn't solve my problem.
File > Invalidated cache/restart. Result: didn't solve my problem.
Try this.
Right-click on the file (e.g.: MainActivity.kt),
then click on "Open In", it will open your explorer window.
At this point open that file, which now you see in your explorer window, in a notepad, make a change (e.g.: adding a space where there is already a blank space)
and save the file.
Now Android Studio should see it correctly or, if not, try to restart Android Studio.
If that works, do the same for all suddenly-changed files.
I have just installed the 2020-12 version of Eclipse IDE, and I simply cannot get the Ctrl+Space suggestions to work. Every time I try to use them I get an empty suggestion box.
I've already searched for this of course, and I've found many who suggest how to fix it.
https://superuser.com/questions/209752/eclipse-doesnt-autocomplete-and-find-references-anymore
Eclipse - CTRL+Space autocompletion does not work any more for Java
https://mkyong.com/java/content-assist-ctrl-space-is-not-working-eclipse/
No Default Proposals in Eclipse Juno
Eclipse/Java code completion not working
Most of these say I need the Other Java Proposals in the settings, but if you look at the image you see that that option doesn't even exist! In the image the default settings are applied but I've also tried to check every single one of those boxes and still get an empty suggestion box when I press Ctrl+Space at the end of Combi (also in the image).
Image of the issue and my settings: https://imgur.com/a/CVRRgC0
I have downloaded the Mars MIPS Simulator .jar file, and I have downloaded the java jdk file from oracle. Whenever I open the jar file, the IDE is there, but everything is greyed-out. I can't even edit the text in the window. When you select "Execute", three cut off windows appear in the box below, one titled "Text Segment", one "Data Segment", and one "Labels". I am thinking it is a failed installation, but I have no idea what else to do. Thank you for any help!
Here is a screenshot:
http://i.imgur.com/8O30Hzh.png
Hey I had the same problem! Just use the toolbar on the top and click paste and the edit window should work. And after you hit assemble, go to settings->Show labels window. Hope it helps!
I can tell you this:
I don't think it's an installation issue. As you said, you installed the JDK and then run the program succesfully. An installation issue would be an unexpected error because of a missing dependency, or something similar.
As this is not a programming question, I don't think StackOverflow is the correct site. You may search in the StackExchange site for an adequate community.
However, try putting the cursor at the bottom of the cut off windows to see if you can modify the size of the container panel.
UPDATE
Seems like the problem is that you are not editing a file, that's why the majority of the buttons are disabled. Try creating a new file: click the first button in the toolbar, the white one. Also, the menu item "file" should give you an option to do it.
I installed Eclipse luna, Android SDK, ADT (all latest) & set up everything.
Even after re-starting Eclipse I don't see Welcome to Android screen. I can only see Welcome Screen. But the settings required for Android & Java were all set I believe so, so the installation might be done properly only.
I tried creating Android projects, on last dialog i.e. select Activity type, I select, click Finish ; the screen blinks and the same page is seen. I tried with variations (using different Activity type) & create 4 projects, can see the projects created, also the activity java file in src folder is created. But on Eclipse Don't see anything. But on top title, I see the project name.
Similarly to chk with I tried creating Java project, same thing. It seems somethign is wrong with Eclipse. Other than WElcome Screen I don't see anything. I even tried to open just a java file - file name is seen on top, but file contents not seen on screen.
Image of how I am creating project & its results :
After clicking Finish & Creating files, etc, again Step 5 is on focus and on back the Initial Welcome Screen is only seen.
If at all I click Finish again, then I get error that ApplicationName already exists.
See the Folders & Files created after clikcing Finish
The files, activity is created. So the Performing Changes has also done its work, but the view is lost ???
This is where I can't get what is happening & Why? What is going wrong here. I have only Android 5.0.1 API 21. I don't have 2.2 - Is that the reason !
Created Manifest File :
- - - -
Can someone please help me with this. I am stuck up and am in hurry to start working.
Any help is highly appreciated.
Thanks
Have you tried reset perspective? (Window -> Reset perspective)
Thanks to all. I got it solved.
I saw 2 icons on the top left below menu bar. On clicking that I could see the project explorer & other windows. And finally closed the Welcome Screen.
Thanks a lot for everybody's effort to help me solve my problem.
Thanks once again.
I'm having trouble setting the command-line arguments in Eclipse.
I've searched around the Internet but can't find anything that helps people with invisible textboxes. I even tried pressing the help button and nothing came up.
How does one set the command-line arguments in Eclipse for a Java project?
Screenshot of Eclipse http://static.zooomr.com/images/8978910_d91c113b07.jpg
Edit:
I've tried blowing away Eclipse and reinstalling to no avail.
I also scanned for JREs again and switched to using the JDK instead of the JRE. This did not help matters.
Try resizing the window to make the text boxes appear.
I tried it on my Mac and if you make the window small enough the text boxes get obscured.
You need to set the main class and java runtime version first to see the text boxes. Then put the args in the "Program arguments" textbox.