mstdmstd Posted March 10, 2021 Share Posted March 10, 2021 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! Quote Link to comment https://forums.phpfreaks.com/topic/312274-how-in-code-visualstudio-create-template-with-custom-pieces-of-code/ Share on other sites More sharing options...
requinix Posted March 10, 2021 Share Posted March 10, 2021 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? Quote Link to comment https://forums.phpfreaks.com/topic/312274-how-in-code-visualstudio-create-template-with-custom-pieces-of-code/#findComment-1585003 Share on other sites More sharing options...
mstdmstd Posted March 11, 2021 Author Share Posted March 11, 2021 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... Quote Link to comment https://forums.phpfreaks.com/topic/312274-how-in-code-visualstudio-create-template-with-custom-pieces-of-code/#findComment-1585014 Share on other sites More sharing options...
requinix Posted March 13, 2021 Share Posted March 13, 2021 Alt + Shift + arrow key? I can't tell what you're talking about. Try looking through the keybindings list for something relevant. 1 Quote Link to comment https://forums.phpfreaks.com/topic/312274-how-in-code-visualstudio-create-template-with-custom-pieces-of-code/#findComment-1585067 Share on other sites More sharing options...
mstdmstd Posted March 14, 2021 Author Share Posted March 14, 2021 14 hours ago, requinix said: Alt + Shift + arrow key? Yes, very similar what I need. Seems name of this function is editorTextFocus? Quote Link to comment https://forums.phpfreaks.com/topic/312274-how-in-code-visualstudio-create-template-with-custom-pieces-of-code/#findComment-1585071 Share on other sites More sharing options...
mstdmstd Posted March 15, 2021 Author Share Posted March 15, 2021 Has function editorTextFocus -some configurable options ? It looks like similar what I need, but not exactly... Quote Link to comment https://forums.phpfreaks.com/topic/312274-how-in-code-visualstudio-create-template-with-custom-pieces-of-code/#findComment-1585113 Share on other sites More sharing options...
requinix Posted March 15, 2021 Share Posted March 15, 2021 Probably not? Maybe there's an extension to do what you want? Quote Link to comment https://forums.phpfreaks.com/topic/312274-how-in-code-visualstudio-create-template-with-custom-pieces-of-code/#findComment-1585115 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.