PB IDE plugin - Beautify code while typing

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

PB IDE plugin - Beautify code while typing

Post by eddy »

:arrow: new version for PB5.30 available here: Link

This tool provides the following features:
  • - Beautify current line code after keying some special characters: ( ) , ; :
    - Beautify previous lines code after keying RETURN
    - Beautifier features:
    • remove trailling spaces
    • write or extend comment block
    • code format on the fly
    • indent code on the fly
    • paste formatted and indented code
    - Modify caret tickness
    - code highlighting (like notepad++)
    - settings panel [TODO]
:arrow: Download zip: dropbox.com/.../PB_editor_extensions.zip
This zip file contains:
  • tool source code
  • tool project file
  • tool EXE and DLL (win - 64bit version)
    If you want a 32bit version, open the project file .pbp and click on menu: compiler > build all targets

:arrow: Demo Video of old version: http://www.screencast.com/users/rineddy ... f7280bb9d8
:arrow: Link to old version: http://www.purebasic.fr/english/viewtop ... 27&t=31689

How to configure this tool:
  • For loaded files
    Image
  • For created files
    Image
Last edited by eddy on Sun Aug 31, 2014 10:04 pm, edited 17 times in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: PB IDE plugin - Beautify code while typing

Post by Thunder93 »

Good tool eddy! any way to have this format an already existing project?
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin - Beautify code while typing

Post by eddy »

Auto Format
Image

Comment block helper
Image Image Image Image
Last edited by eddy on Sat Mar 23, 2013 7:14 pm, edited 4 times in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: PB IDE plugin - Beautify code while typing

Post by Thunder93 »

Good stuff! Keep up the good work on here Eddy!
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin - Beautify code while typing

Post by eddy »

[Updated]
- feature added : code formatting while typing
- project updated : new function SciAutoFormat
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: PB IDE plugin - Beautify code while typing

Post by Thunder93 »

Nice job eddy! And much appreciation.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Alireza
Enthusiast
Enthusiast
Posts: 143
Joined: Sat Aug 16, 2008 2:02 pm
Location: Iran

Re: PB IDE plugin - Beautify code while typing

Post by Alireza »

TX eddy, have good times :D
PB v 5.6 :D
User avatar
Alireza
Enthusiast
Enthusiast
Posts: 143
Joined: Sat Aug 16, 2008 2:02 pm
Location: Iran

Re: PB IDE plugin - Beautify code while typing

Post by Alireza »

can you make it for quit whit pb-editor close Simultaneously؟
PB v 5.6 :D
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin - Beautify code while typing

Post by eddy »

[Updated]
- improvement : tool auto-close
- feature added : paste formatted code
- feature added : formating current line
- project updated : new function SciCommitPaste

Paste formatted and indented code
Image Image
Last edited by eddy on Sun Mar 24, 2013 10:38 am, edited 4 times in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Alireza
Enthusiast
Enthusiast
Posts: 143
Joined: Sat Aug 16, 2008 2:02 pm
Location: Iran

Re: PB IDE plugin - Beautify code while typing

Post by Alireza »

that's useful tool, thanks man :D
PB v 5.6 :D
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin - Beautify code while typing

Post by eddy »

[Updated]
- feature added : paste indented code
- feature added : indent after keying SPACE

WARNING: This indentation system is experimental.
I don't like this solution. I'll remove or replace it in a futur version.
In this version, the tool selects your code and simulate a accelerator keystroke ( CTRL+I )
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: PB IDE plugin - Beautify code while typing

Post by eddy »

[Updated]
Added : new indentation code (splitted line supported)
Removed : old indentation code using keystrokes CTRL+I
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Alireza
Enthusiast
Enthusiast
Posts: 143
Joined: Sat Aug 16, 2008 2:02 pm
Location: Iran

Re: PB IDE plugin - Beautify code while typing

Post by Alireza »

very useful :D tx
PB v 5.6 :D
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Re: PB IDE plugin - Beautify code while typing

Post by sec »

Thanks,
Could add feature : when click to selected name /variable/func,.. It will highlight same name around?
Same in notepad++
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Re: PB IDE plugin - Beautify code while typing

Post by yrreti »

Hi eddy

I have it set up as shown, but it still does not close when exiting the PureBasic IDE.
I always have to manually close it after closing the IDE. Is there a change in settings that
needs to be done?
Post Reply