A simple question: Is it possible to configure the Geany IDE so that Node.js servers can be run directly from Geany using the “Run” button?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When inside a JS file, go to
Build > Set Build Commands, there should be a section titleExecute commands. To usenodeto execute your files, put:node "%f"in the “Execute” command textbox.When you change this, any
.jsfiles you are editing will run node in the virtual terminal when you hitF5.If you want to set up an entire project to run the server whenever you’re working somewhere within a given directory structure, you’ll have to mess with project-level configuration. (something I don’t usually bother with) My solution here just gives you a quick way to execute a single JS file without using an external terminal.
UPDATE:
node "%f"seems to be legacy, butnodejs "%f"works