An open API service indexing awesome lists of open source software.

https://github.com/andrepfdev/vscode-php-auto-dollar

Uma extensão do VS Code que adiciona $ automaticamente às variáveis do PHP.
https://github.com/andrepfdev/vscode-php-auto-dollar

php typescript vscode vscode-extension

Last synced: 4 months ago
JSON representation

Uma extensão do VS Code que adiciona $ automaticamente às variáveis do PHP.

Awesome Lists containing this project

README

          

# PHP Auto Dollar

🇺🇸 **English** | 🇧🇷 **Português**

A Visual Studio Code extension that automatically adds the `$` symbol to PHP variables when saving a file.
Uma extensão do Visual Studio Code que adiciona automaticamente o símbolo `$` às variáveis PHP ao salvar o arquivo.

---

## Features | Funcionalidades

- Automatically adds `$` to PHP variables on file save (`Ctrl + S`)
Adiciona automaticamente `$` às variáveis ao salvar (`Ctrl + S`)

- Detects assignments, function parameters, and common usage patterns
Detecta atribuições, parâmetros de função e usos comuns

- Ignores PHP keywords and reserved contexts
Ignora palavras-chave e contextos reservados do PHP

- Manual command: `PHP: Add Dollar Signs to Variables`
Comando manual: `PHP: Add Dollar Signs to Variables`

---

## How It Works | Como Funciona

1. Write PHP code without typing `$`
Escreva o código PHP sem digitar o `$`

2. Save the file (`Ctrl + S`)
Salve o arquivo (`Ctrl + S`)

3. The extension will automatically add `$` where needed
A extensão adicionará `$` automaticamente onde necessário

---

## Example | Exemplo

**Before saving | Antes de salvar:**

![before](https://github.com/user-attachments/assets/744f5929-282b-4f11-92c1-ccfa1d603c5a)

**After saving | Depois de salvar:**

![after](https://github.com/user-attachments/assets/2e02645a-33f8-466b-815c-031ddfcb5ffa)

---

## Configuration | Configuração

No configuration is required.
Nenhuma configuração necessária.

---

## Installation | Instalação

1. Open VS Code and go to Extensions (`Ctrl+Shift+X`)
Abra o VS Code e vá em Extensões (`Ctrl+Shift+X`)

2. Search for `PHP Auto Dollar` and install
Procure por `PHP Auto Dollar` e instale

3. Reload or restart VS Code
Recarregue ou reinicie o VS Code

---

## Feedback & Issues | Feedback & Problemas

Found a bug or have a suggestion?
Encontrou um bug ou tem sugestão?

- [Open an issue](https://github.com/andrepfdev/vscode-php-auto-dollar/issues)
- [Contribute on GitHub](https://github.com/andrepfdev/vscode-php-auto-dollar)

---

## License | Licença

[MIT License](LICENSE)