SymfonyWorld Online 2021 Winter Edition December 9 – 10, 2021 100% Online 25 talks and 10 workshops

Copy code from examples

Improving your productivity as developer is one of our main obsessions. That's why we work so hard on improving DX (developer experience), reword the error messages until they are crystal clear, improve the performance of the development environment and continue adding features to MakerBundle.

We also make lots of improvements to, usually too small to announce them. However, yesterday we added an important new feature to that will make you more productive: code examples now display a "Copy code" button.

Click on the blue rounded icon located at the top right of each code example to copy those contents into your clipboard:

For the moment, the "Copy Code" button is not available in console/terminal examples and in "code diff" examples. The reason is that those examples usually contain more contents than what you really want to copy. We'll try to add support for them in the future.

We've tested this feature successfully in multiple combinations of operating systems, devices and browsers, but if you find any issue, please report it to us on GitHub or the comments below.

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.


..a lot of code is going to look like your documentation now but well, it's still a good thing anyway :)
would be better if it hooks into your IDE and creates the example classes / files for you in your current project :)
@Alan Jeeves The MakerBundle commands do a lot of that :)
Copy button has no alt tag information for screen reader users.
That's Awesome !!

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.