I found Atom editor as good free alternative to Sublime text editor. Not able to find a straightforward way to run a program in Atom editor. In my case, I am trying to run a java program. Please let me know if it's possible? If yes, please describe the steps to follow.
How to run a program in Atom Editor?
310.4k views Asked by Omkar Shetkar AtThere are 9 answers
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                You can go settings, select packages and type atom-runner there if your browser can't open this link.
To run your code do Alt+R if you're using Windows in Atom.
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                You can try to use the runner in atom Hit Ctrl+R (Alt+R on Win/Linux) to launch the runner for the active window. Hit Ctrl+Shift+R (Alt+Shift+R on Win/Linux) to run the currently selected text in the active window. Hit Ctrl+Shift+C to kill a currently running process. Hit Escape to close the runner window
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                If you know how to launch your program from the command line then you can run it from the platformio-ide-terminal package's terminal. See platformio-ide-terminal provides an embedded terminal within the Atom text editor. So you can issue commands, including commands to run your Java program, from within it. To install this package you can use APM with the command:
$ apm install platformio-ide-terminal --no-confirm
Alternatively, you can install it from the command palette with:
- Pressing Ctrl+Shift+P. I am assuming this is the appropriate keyboard shortcut for your platform, as you have dealt ith questions about Ubuntu in the past.
 - Type Install Packages and Themes.
 - Search for the 
platformio-ide-terminal. - Install it.
 
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                For C/C++ programs there's very good package gpp-compiler.
Shortcuts:
- To compile and run: F5
 - To debug: F6
 
I find the Script package useful for this. You can download it here.
Once installed you can run scripts in many languages directly from Atom using
cmd-ion Mac orshift-ctrl-bon Windows or Linux.