CODE SNIPPET CONTAINER

Make a request or discuss new features.
Post Reply
tim_crouse
Posts: 60
Joined: 12 Apr 2024 00:22

CODE SNIPPET CONTAINER

Post by tim_crouse »

A suggestion folks may find useful:

A Code Snippet Container that looks a lot like the Code Explorer Container:
-Ability to Add Code Groups (C++, PHP, Excel . . . .)

-Ability to add a title to a Snippet

-List of Snippet Ttitle Appears in the Upper Pane

-Selecting a Title shows a preview of the code snippet in the lower pane

-A set of management buttons (Add, Del, Place in Editor, Move Up, Move Down, Sort (date, Alpha))

-Move between Librarys Should Be an Option Too

-Ability to Highlight code in the editor and right click and allow "Send To Library >>
A dialog Pops up an allows one to complete adding it to the library
--Title
--Library to Go Into

Something Along Those Lines
Best Regards
-Tim C.
User avatar
Rickard Johansson
Site Admin
Posts: 6661
Joined: 19 Jul 2006 14:29

Re: CODE SNIPPET CONTAINER

Post by Rickard Johansson »

Do you mean something like the Text Clips panel?

clips.png
clips.png (7.05 KiB) Viewed 814 times
tim_crouse
Posts: 60
Joined: 12 Apr 2024 00:22

Re: CODE SNIPPET CONTAINER

Post by tim_crouse »

Hmmm, so close :-D , it's almost like you read my mind but the connection was lost or one of us was distracted by that squirrel outside my window :)

Wouldn't the "abbreviation" section be better named Snippets? Or Code Blocks?
This also applies to the Pane, Renaming the Panel to Code Blocks or Code Snippets seems a bit better match.

And the Snippets Section albeit listed as snippets what the area appears to be serving as is perhaps a favorite or quick access grouping.

Don't roll your eyes too hard on this one :), I just don't think the abbreviation is the best title.

Typical Right Click Functionality would be a nice touch to the Text Clips Pane, Add / Delete that sort of stuff

It is not clear to me how to manage "Snippets" Tapping the More icon has no reference to Snippets, also
Would suggest the More Icon Hint be changed to Manage or Import/Export and Swap the icon from a computer monitor to something like "+>" something that indicates the function of the operation a bit closer than a computer monitor.

And last but not least :)
If you cannot add a preview pane to the dialog how about a floating hint that shows the code block the user is hovering over?


The Text Clip "New Folder" Dialog appears squished a bit, see attached, 3840 x 2160 @200-225% scaling
Abbreviation New Folder Dialog - Squished.png
Abbreviation New Folder Dialog - Squished.png (19.13 KiB) Viewed 812 times
Best Regards
-Tim C.
User avatar
Rickard Johansson
Site Admin
Posts: 6661
Joined: 19 Jul 2006 14:29

Re: CODE SNIPPET CONTAINER

Post by Rickard Johansson »

Abbreviations are not the same as snippets. They work the same as Emmet Abbreviations.

E.g.

Open a new .js file and type "try".

abbrev01.png
abbrev01.png (3.35 KiB) Viewed 786 times

Press "TAB" to expand the abbreviation.

abbrev02.png
abbrev02.png (5.73 KiB) Viewed 786 times

There are 2 abbreviations in the JScript section (probably should change it to JavaScript). But you can add more yourself.

abbrev.png
abbrev.png (1.81 KiB) Viewed 786 times
tim_crouse
Posts: 60
Joined: 12 Apr 2024 00:22

Re: CODE SNIPPET CONTAINER

Post by tim_crouse »

I recently came across emmet functionality, which seems to be a web thing.

I also noticed you have the hint hover implemented for the emmet area. Is it implemented in other parts of the text clip container and I am missing it somehow (referring back to the question to have it implemented for code blocks).

Best Regards
-Tim C.
Post Reply