Jump to content

How in code visualstudio create template with custom pieces of code ?


Recommended Posts

Hello,
I installed code visualstudio 1.54.1 and reading docs I can not find some features I need as :
1) Create custom pieces of code and insert them into my page by code autocomplete ?
2) Having some line of code as current by hotkeys to select more pieces of code into left and right sides?
Thanks!

Link to comment
Share on other sites

55 minutes ago, mstdmstd said:

1) Create custom pieces of code and insert them into my page by code autocomplete ?

They're called "snippets".

 

55 minutes ago, mstdmstd said:

2) Having some line of code as current by hotkeys to select more pieces of code into left and right sides?

What?

Link to comment
Share on other sites

1) Thanks!
2) I mean if cursor is located on string

$adImageItemImgProps = AdImage::readAdImageProps($adImageItem->ad_id, $adImageItem->image, true);


inside of readAdImageProps method name, but no chars selecte and clicking hot key
all readAdImageProps method name is selected
and clicking hot key
AdImage::readAdImageProps is selected.
and so on...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.