Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore a java class file

Is there a way, either in the Android Studio IDE or in code to ignore an entire class file, errors and all? I have a class that I no longer need but am not just yet ready to delete it - but it has errors so I cant run my project until those are fixed. So I don't need to compile it, I just want to keep it handy in my project in case I need to go back to it and grab a piece of code.

like image 964
bwoogie Avatar asked Dec 15 '25 13:12

bwoogie


2 Answers

Can you try renaming the file from .java? Such as .txt or similar

Also if you just add /* and */ at the start and end of the file, so that everything is commented out, and it'll be easy to remove the comment

like image 148
EDToaster Avatar answered Dec 18 '25 14:12

EDToaster


You are not ready to comment the entire code ?

Cntrl+A

Cntrl+Shift+"?"

like image 28
Don Chakkappan Avatar answered Dec 18 '25 13:12

Don Chakkappan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!