@@ -211,25 +211,16 @@ ide
211
211
212
212
**type **: ``string `` **default **: ``null ``
213
213
214
- Symfony can turn file paths seen in dumps and exception messages into links
215
- that will open in your preferred text editor or IDE.
214
+ Symfony turns file paths seen in variable dumps and exception messages into
215
+ links that open those files right inside your browser. If you prefer to open
216
+ those files in your favorite IDE or text editor, set this option to any of the
217
+ following values: ``phpstorm `` (requires `PhpStormProtocol `_), ``sublime ``,
218
+ ``textmate ``, ``macvim `` and ``emacs ``.
216
219
217
- Since every developer uses a different IDE, the recommended way to enable this
218
- feature is to configure it on a system level. This can be done by setting the
219
- ``xdebug.file_link_format `` option in your ``php.ini `` configuration file.
220
-
221
- .. tip ::
222
-
223
- Setting the ``xdebug.file_link_format `` ini option works even if the Xdebug
224
- extension is not enabled.
225
-
226
- Alternatively, you can use this ``ide `` configuration key.
227
-
228
- In both cases, the expected configuration value is a URL template that contains an
229
- ``%f `` where the file path is expected and ``%l `` for the line number. When using
230
- the ``ide `` configuration key, percentages signs (``% ``) must be escaped by
231
- doubling them. For example, if you use PHPstorm on the Mac OS platform, you will
232
- do something like:
220
+ If you use another editor, the expected configuration value is a URL template
221
+ that contains an ``%f `` placeholder where the file path is expected and ``%l ``
222
+ placeholder for the line number (percentage signs (``% ``) must be escaped by
223
+ doubling them to prevent Symfony from interpreting them as container parameters).
233
224
234
225
.. configuration-block ::
235
226
@@ -259,6 +250,22 @@ do something like:
259
250
'ide' => 'phpstorm://open?file=%%f&line=%%l',
260
251
));
261
252
253
+ Since every developer uses a different IDE, the recommended way to enable this
254
+ feature is to configure it on a system level. This can be done by setting the
255
+ ``xdebug.file_link_format `` option in your ``php.ini `` configuration file. The
256
+ format to use is the same as for the ``framework.ide `` option, but without the
257
+ need to escape the percent signs (``% ``) by doubling them.
258
+
259
+ .. note ::
260
+
261
+ If both ``framework.ide `` and ``xdebug.file_link_format `` are defined,
262
+ Symfony uses the value of the ``framework.ide `` option.
263
+
264
+ .. tip ::
265
+
266
+ Setting the ``xdebug.file_link_format `` ini option works even if the Xdebug
267
+ extension is not enabled.
268
+
262
269
.. tip ::
263
270
264
271
When running your app in a container or in a virtual machine, you can tell
@@ -274,12 +281,6 @@ do something like:
274
281
.. versionadded :: 3.2
275
282
Guest to host mappings were introduced in Symfony 3.2.
276
283
277
- .. tip ::
278
-
279
- Symfony contains preconfigured URLs for some popular IDEs, you can set them
280
- using the following values: ``phpstorm `` (requires `PhpStormProtocol `_),
281
- ``sublime ``, ``textmate ``, ``macvim `` or ``emacs ``.
282
-
283
284
.. _reference-framework-test :
284
285
285
286
test
0 commit comments