phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.io
GNU Affero General Public License v3.0
1.79k stars 124 forks source link

Beautify does not honour npm defualt format #1795

Closed charlypa closed 3 months ago

charlypa commented 3 months ago

Describe the bug

I want default spacing from npm or already followed convention in code when I press or type instead of beautify convention

Reproduction

1.create new package using npm init

  1. try to add package in package.json
  2. newly added package wont be formated
  3. once beautify is applied entire formating is lost

Expected behavior

Beautify should automatically apply the current format

OS, Browser and Phoenix versions

Any OS

logs or debug stack trace if any

No response

Additional context

No response

abose commented 3 months ago

Fixed via auto space detection: https://github.com/phcode-dev/phoenix/pull/1806