Comment on page
Run
If your project is ready to activate, run and see the result.
You can add run command with "Add run command" on the top toolbar.
Alternatively, go to [Project] > [Run] > [Add run command]

To add a default build command for the language/framework, right-click the "Run" item on the [Command] tab.

The default run commands include
Python, Django, Flask, Jupyter Notebook, PyQ4, Python Tkinter, Nodejs, C, C++, Go, PHP, Java, Java Swing, JavaFx, Java AWT, Jsp, Spring(war), jar, Ruby, Sinatra, Swift, C#, C# WinForm, .Net, R.
For other files, use shell command:
$<File Path>
.
Launch a build command with the "Run" icon on the toolbar to execute the most recent run command, or click the [Project] > [Run] Menu.

You can also run specific files(extension, file name). Right-click a file in the Project tab. Then click the [Run] > [Run Selected File].

'Run selected file' is only available when the file is one of the following extensions.
- *.c, *.cpp, *.cxx
- *.cs
- *.go
- *.js
- *.php
- *.py
- *.sh
- *.R
- *.java
- *.jsp
- *.rb
- *.swift
If you want to run other files, use the default method on shell:
$<File Path>
.
When you start running, a tab for the run command name appears at the bottom. This tab is Run-only terminal that displays the results of the run command action.
Clear run performance history with the
Clear
button, and stop it with the Stop
button. You can print results or give input values in this terminal.
.png?alt=media&token=3f3b3691-e68e-454b-94cb-538dfdffb361)
a tab for the run command
Projects that require Web servers such as PHP, JSP, and Node.js need domain addresses to run.
You can register a domain address at the top menu [Project] > [Running URL and Port]

Write URL and Port, and press the
Register
button.
You cannot register multiple URLs to one port.For some plug-ins, you might need to register a specified port to run the server.
URLs that are no longer in use can be deleted by pressing the Recycle Bin button.

When clicking the
Save and run
button, ‘Server Process’ toggle must be turned on in order for the registered domain to be displayed on the run command tab. You may access the registered address through this display.
This is an example of running express server in Node.js project.

By connecting to a given domain, you can see that the express server is running.

express server is running
This is an example of running Django server in Python project.

By connecting to a given domain, you can see that the Django server is running.

Django server is running
If you want to run the server using a direct console, use the registered domain address and port.
To check this, go to [Project] > [Running URL and Port] or [Project] > [Properties] > [Running URL and Port]. Select the registered URL and port to run the server.
When the server runs, localhost is connected to the domain address which is linked to the port.
Last modified 3yr ago