Jump to content

Lightweight JavaScript IDE

Wictorian

Is there a simple lightweight JavaScript IDE? Like IDLE for Python? Running with browser is cool but you can't see the errors. And IDES like WebStorm are too heavyweight for my laptop.

 

Link to comment
Share on other sites

Link to post
Share on other sites

I've been using VS code with a live server plugin and the console within chrome. Gets the job done.

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to comment
Share on other sites

Link to post
Share on other sites

39 minutes ago, trag1c said:

I've been using VS code with a live server plugin and the console within chrome. Gets the job done.

Running the code is not the issue, running the IDE is. I will try it but I hope it is lightweight. How do you use chrome console? I use MS Edge (it is built with chromium) I guess it would work.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Slottr said:

VS

You mean regular Visual Studio? Isn't that pretty heavyweight?

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, Wictorian said:

You mean regular Visual Studio? Isn't that pretty heavyweight?

Sorry no- VS Code.

Community Standards || Tech News Posting Guidelines

---======================================================================---

CPU: R5 3600 || GPU: RTX 3070|| Memory: 32GB @ 3200 || Cooler: Scythe Big Shuriken || PSU: 650W EVGA GM || Case: NR200P

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, trag1c said:

I've been using VS code with a live server plugin and the console within chrome. Gets the job done.

VS Code now has an integrated JS debugger. It's in the latest release.

CPU: AMD Ryzen 9 5900X · Cooler: Artic Liquid Freezer II 280 · Motherboard: MSI MEG X570 Unify · RAM: G.skill Ripjaws V 2x16GB 3600MHz CL16 (2Rx8) · Graphics Card: ASUS GeForce RTX 3060 Ti TUF Gaming · Boot Drive: 500GB WD Black SN750 M.2 NVMe SSD · Game Drive: 2TB Crucial MX500 SATA SSD · PSU: Corsair White RM850x 850W 80+ Gold · Case: Corsair 4000D Airflow · Monitor: MSI Optix MAG342CQR 34” UWQHD 3440x1440 144Hz · Keyboard: Corsair K100 RGB Optical-Mechanical Gaming Keyboard (OPX Switch) · Mouse: Corsair Ironclaw RGB Wireless Gaming Mouse

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, Wictorian said:

Running the code is not the issue, running the IDE is. I will try it but I hope it is lightweight. How do you use chrome console? I use MS Edge (it is built with chromium) I guess it would work.

When you enter the inspection window when viewing a web page they have a tab for the console.

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, trag1c said:

When you enter the inspection window when viewing a web page they have a tab for the console.

Yes I know that but what does it have to do with VS code?

Link to comment
Share on other sites

Link to post
Share on other sites

You're not looking for an actual IDE, but a code editor. Out of all I've tried, most lightweight is Sublime Text. Right now I use Visual Studio Code, but you can try out ATOM or even Notepad++.

BTW, what do you mean you cannot see the errors in the browser? Browsers tell you the result before you have hit the ENTER key while typing in the console. Also when you execute the code it will log the errors.

Link to comment
Share on other sites

Link to post
Share on other sites

On 7/31/2021 at 3:37 AM, Wictorian said:

Is there a simple lightweight JavaScript IDE? Like IDLE for Python? Running with browser is cool but you can't see the errors. And IDES like WebStorm are too heavyweight for my laptop.

IDLE is hardly an IDE, if you just want a text editor with syntax highlighting there are plenty (notepad++ being one of the first that come to mind); otherwise, one of my favorite lightweight IDEs is Geany.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Vs code is very close to a fullblown IDE especially if you add on all the extensions and modules. Nothing comes close to jetbrain IDEs in intellisense however. Most light weight would just be a simple text editor with color highlighting. Nano, the terminal editor is as close to lightweight as you can get if you use Unix systems. 

Sudo make me a sandwich 

Link to comment
Share on other sites

Link to post
Share on other sites

On 7/31/2021 at 12:20 AM, Chris Pratt said:

VS Code now has an integrated JS debugger. It's in the latest release.

Doesn't really help if you sourced a minify file or write your applications with react/angular in typescript. All these gets compiled, minified, and transform so you can't really tell where in the code it is happening. debuggers, break points, step over/into, and stack memory arent very helpful. 

Sudo make me a sandwich 

Link to comment
Share on other sites

Link to post
Share on other sites

if you're looking into most lightweight js/html editing

  1. Open your browsers "developer tools"
  2. Click: "sources", "filesystem", "add folder to workspace"
  3. Select your project folder or create one
  4. Accept permission
  5. From there you can add / edit / debug your files, but just like on a normal page you'll have to reference your js from a html file
  6. ?
  7. Profit

It's like an actual IDE

test.html

<script src="test.js"></script>


test.js

const url = new URL(document.location)
console.log(url)

 

console output:

URL {origin: "file://", protocol: "file:", username: "", password: "", host: "", …}



image.thumb.png.7a18401d6400ce6f5de23701554f3e97.png

Software developer.
Case: be quiet! Dark Base Pro 900 Orange rev. 2 MB: GIGABYTE Z590 AORUS ULTRA (rev. 1.0) CPU: Intel® Core™ i9-11900K WC: be quiet! Pure Loop 280mm GPU: AORUS GeForce RTX 3080 Ti MASTER 12G RAM: 128GB (4x Kingston FURY 32 GB DDR4-3600) M.2: 3TB (Samsung 970 EVO Plus 1 TB & Crucial P5 2TB PCIe M.2 2280SS) PSU: be quiet! Dark Power Pro 12 1500W

Link to comment
Share on other sites

Link to post
Share on other sites

On 8/11/2021 at 1:26 AM, bullipatty said:

if you're looking into most lightweight js/html editing

  1. Open your browsers "developer tools"
  2. Click: "sources", "filesystem", "add folder to workspace"
  3. Select your project folder or create one
  4. Accept permission
  5. From there you can add / edit / debug your files, but just like on a normal page you'll have to reference your js from a html file
  6. ?
  7. Profit

It's like an actual IDE

test.html


<script src="test.js"></script>


test.js


const url = new URL(document.location)
console.log(url)

 

console output:


URL {origin: "file://", protocol: "file:", username: "", password: "", host: "", …}



image.thumb.png.7a18401d6400ce6f5de23701554f3e97.png

Wow thanks. Also may I ask what this browser is?

Link to comment
Share on other sites

Link to post
Share on other sites

On 8/12/2021 at 2:23 PM, Wictorian said:

Wow thanks. Also may I ask what this browser is?

I use Chrome at home and Edge at work, both have it, so maybe other Chromium browsers have similar features too.
Sorry I didn't specify an browser before, cause i thought all major browsers have this feature, but I just checked on Firefox and it doesn't seem to have it.

Software developer.
Case: be quiet! Dark Base Pro 900 Orange rev. 2 MB: GIGABYTE Z590 AORUS ULTRA (rev. 1.0) CPU: Intel® Core™ i9-11900K WC: be quiet! Pure Loop 280mm GPU: AORUS GeForce RTX 3080 Ti MASTER 12G RAM: 128GB (4x Kingston FURY 32 GB DDR4-3600) M.2: 3TB (Samsung 970 EVO Plus 1 TB & Crucial P5 2TB PCIe M.2 2280SS) PSU: be quiet! Dark Power Pro 12 1500W

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×