CopyPasta is a VsCode Extension allows you to copy paste the code section first answer to your question from Stack OverFlow.
In your text editor just write what you would normally search on Google, then press 'ctrl+enter' you will get what you want. You don't have to add name of the language you are writing on because it will be automatically added.
Currently there two advanced options;
Obviously if you have spesific enough problems you should check them out by yourself but if you just wanna know the syntax that you used for CopyPasta is your helper.