dev-resources.site
for different kinds of informations.
JavaScript in IDE scripting console
Published at
10/13/2024
Categories
jetbrains
javascript
idea
Author
maksimrv
Author
8 person written this
maksimrv
open
Official script example written in JavaScript
function main() {
let sum = 0;
let arr = "35907 77134 453661 175096 23673 29350".split(" ");
arr.forEach((it) => sum += it.length);
com.intellij.openapi.ui.Messages.showInfoMessage((sum / arr.length).toString(), "test");
}
main();
IDEA uses GraalJS to run the script. So you can use interop between JavaScript and Java to access Java objects.
JavaScript runtime also has a global variable IDE which reference an instance of com.intellij.ide.script.IDE
IDE.print("Hello World!")
jetbrains Article's
30 articles in total
JetBrains developer stats of 2024
read article
Rust is Still Promising as a Replacement for C++
read article
Free AI Git Commit Message Plugin for JetBrains IntelliJ IDEA Using Gemini API
read article
Jetbrains Rider Endpoints
read article
Generating Flyway migrations using IntelliJ IDEA
read article
JavaScript in IDE scripting console
currently reading
How to add intellij community edition to right click menu on win 11
read article
Introducing the New TeamCity Plugin for IntelliJ IDEA
read article
π I Improve Your IDEs: The Most Useful Plugins
read article
JetBrains Python ignore PEP 8 errors
read article
JetBrains - Aqua - Test Automation IDE
read article
Set up command line launcher in WebStorm 2024.2+
read article
Rider Testimonial
read article
A Tour of the Couchbase JetBrains Plugin for Developers
read article
Jetbrains Rider External Tools example based on Docker
read article
From JetBrains to VSCode to NVIM: Why I Made the Switch
read article
How to Run Docker-based .NET apps in JetBrains Rider Without βFast Modeβ
read article
Kong plugin development with breakpoint debugging
read article
JetBrains Adds Daytona to Remote Dev Env Managers
read article
How-to Connect JetBrains IDEs to Amazon RDS with AWS SSO
read article
JetBrains' AI Assistant
read article
Meetup #57: Kotlin Multiplatform is Stable !
read article
The Battle of IDEs: Visual Studio Code vs. JetBrains - Which Reigns Supreme?
read article
How to Integrate Docker & JetBrains into Telepresence
read article
Creating an OpenAPI generator from scratch : From YAML to JetBrains HTTP Client
read article
RubyMine Auto Completion Freeze
read article
Squirrelsong: light & dark themes for web developers
read article
Keep Watch on SQL Query in Intellij/Goland or DataGrip
read article
RubyMine. How to Open a Folder with a Single Click
read article
Introducing Refact: Open-source alternative to Github Copilot
read article
Featured ones: