Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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.

  • Author
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!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.