Hello devs, I know sometimes you encounter problems while coding, and what comes to mind is, I want to ask it in forums or social media, where there are many programmers from all over the world.
When you want to post your problem, and you include the code you created, it's very unsightly if the code you upload is the result of a photo with a cellphone camera, because the results are not good, sometimes even very bad.
As a programmer, you must know how to share a code beautifully and neatly in a forum or community, it will make it easier for people to help solve the problems you face.
There is a tool that is very suitable for this case. The tool is Carbon. Carbon is a website for creating screenshots of your code, and of course it can be customized.
Carbon supports more than 50 languages, and you can customize it according to your code. Carbon can be accessed at https://carbon.now.sh/. The best point is, this tool is in the Visual Studio Code Extension. It will be even easier to use.
An example of a screenshot of the results from Carbon is like this:
Beautiful, isn't it.
To use Carbon in Visual Studio Code, click the Extensions button on the sidebar or press Ctrl + Shift + X. Type carbon-now-sh in the search, then install. If you want to see it in the Marketplace, you can follow this link.
To use Carbon, the code block you want to split, press Ctrl + Shift + P, type Carbon, or use the shortcut, Alt + Cmd + A or Alt + Windows + A on Windows. The code you block will automatically appear on the Carbon web page, and ready to be customized.
Once the code is customized, it's ready for export, you can export your code in PNG or SVG format. Finally, your code is ready to be shared on social media or forums. I'm sure there will be some people asking, "how to create a screenshot like that?".