> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/desarrollo/editor.md).

# Editor

Los controles del editor dentro de la consola de administración de PowerShell Universal ofrecen una completa experiencia de edición para los usuarios de PowerShell. Podrá aprovechar IntelliSense, el formato y la compatibilidad con errores del analizador.

## IntelliSense

![IntelliSense](/files/tbJ8nZhGk7p6mRLOSNM2)

Todos los editores de PowerShell Universal proporcionan IntelliSense. Debería poder completar comandos, parámetros, variables integradas y rutas.

Hay un par de advertencias con IntelliSense.

**IntelliSense se ejecuta dentro del servidor de PowerShell Universal**

No depende de un entorno configurado para funcionar. Se ejecuta dentro del proceso del servidor de PowerShell, por lo que utilizará la versión actual de PowerShell 7 a la que hace referencia el servidor.

**Los módulos de Universal están disponibles**

Los módulos incluidos con PowerShell Universal se incluyen automáticamente. Verá IntelliSense para los siguientes módulos.

* Universal

**Los módulos incluidos en PSModulePath están disponibles**

Cualquier módulo instalado en un PSModulePath estará disponible en IntelliSense.

**Las variables en vivo no son compatibles**

Tendrá acceso a variables integradas como `ConfirmPreference` y `Host`, pero no verá variables específicas de PowerShell Universal.

## Formato

[Formato](https://devolutions.net/blog/)

Puede utilizar el comando `Invoke-Formatter` de `PSScriptAnalyzer` en sus scripts. Deberá instalar `PSScriptAnalyzer` en su PSModulePath para poder utilizar esta funcionalidad. Puede aplicar formato haciendo clic con el botón derecho dentro del editor y seleccionando Formato o pulsando F8.

## Errores de sintaxis

Los errores de sintaxis se muestran como subrayados ondulados rojos dentro del editor. Al pasar el cursor sobre ellos se proporciona información sobre el motivo del error de sintaxis.

![Errores de sintaxis](/files/eu2YGYPfh4M4uivUpMsN)

## Integración con PSScriptAnalyzer

El editor de PowerShell Universal se integra automáticamente con PSScriptAnalyzer cuando este está instalado en el servidor de PSU. PSScriptAnalyzer se ejecutará sobre los scripts de PowerShell mientras los redacta en la consola de administración. Las advertencias se presentarán en línea, además de una alerta en la parte superior del editor.

Haga clic en la alerta para desplazarse hasta el primer error o advertencia.

A partir de la versión 4.1, ahora puede especificar un fichero [PSScriptAnalyzerSettings.psd1](https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules) en la raíz de su repositorio para permitir la configuración del análisis dentro de PowerShell Universal.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/es/desarrollo/editor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
