Jump to content

How do I set up IntelliJ so that I can view separate code in another tab?


DirtyDick

Recommended Posts

I was working with Eclipse whilst I was learning and I managed to open my 'Framework.java' class within my Java Project so that I could copy and paste relevant snippets (see photo).

For the most part, it worked really well - I could easily switch between the two tabs and it really sped up my script writing.

I can't recall how I set this up but I must've done something wrong because when I export the .jar, it seems to overwrite my previous scripts and all of my scripts are called 'Framework' in OSBot 😂

 

Nevertheless, I'm now switching to IntelliJ because I prefer the UI and I figured I'd ask here for advice on initial setup as hopefully I'm not the only one here that prefers working this way.

I've written about 50 very basic scripts now so I'd really like a better, more streamlined way of opening a new project in IntelliJ, having my 'Framework.java' code readily available but in a way that doesn't affect the .jar export process - any advice would be hugely appreciated please..!

 

 

xmple.png

Link to comment
Share on other sites

20 hours ago, Lunar said:

Just make a project template. You'll have to rename the jar in the project artifacts whenever you make a new project, but that's it.

If you want to view two classes at the same time, just drag the tab for one class to the side of the window. Intellij will display both classes at the same time.

Thanks for the reply, I've just set up IntelliJ using this guide.

Just to be certain (before I mess something up), are you saying I can just create another class within my template project, call it 'Framework' and paste in all my snippets from Eclipse using /* */ and it won't affect any scripts I export?

As you kindly suggested, I'll be initializing this script template project by default, using 'Save As' to give it a custom name and then renaming the jar in Artifacts before writing any code.

class.png

6 hours ago, Khaleesi said:

You can right click the tab at the top and choose split right.
Is that what you need?

Thanks for this - I wasn't aware of this split-screen function, it'll prove very handy when copy and pasting snippets instead of switching between the tabs. Many thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...