Skip to main content
deleted 244 characters in body
Source Link
Kuba
  • 138.9k
  • 13
  • 297
  • 803

updatesRevision history:

21-02-2018 v0.7.0

  • v0.8.0 (06-07-2018) VerificationTest template

enter image description here

  • v0.7.0 (21-02-2018) V10.4 support

As of v0.7.0 code templates willshould work onin V10.4, probably even in earlier versions but I need to check that.

For pre V11 a notebook approach is used instead of an AttachedCell based menu. See .gif at the bottom. To change this you can run: CurrentValue[$FrontEnd, {TaggingRules, "DevTools", "MenuMethod"}] = "Cell" (*or "Notebook" *) but FE crashed for me once or twice and I was not able to reproduce circumstances so do it on your own risk.


Yes, in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

Menu in V10.4

enter image description here

updates:

21-02-2018 v0.7.0

As of v0.7.0 code templates will work on V10.4, probably even in earlier versions but I need to check that.

For pre V11 a notebook approach is used instead of an AttachedCell based menu. See .gif at the bottom. To change this you can run: CurrentValue[$FrontEnd, {TaggingRules, "DevTools", "MenuMethod"}] = "Cell" (*or "Notebook" *) but FE crashed for me once or twice and I was not able to reproduce circumstances so do it on your own risk.


Yes, in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

Menu in V10.4

enter image description here

Revision history:

  • v0.8.0 (06-07-2018) VerificationTest template

enter image description here

  • v0.7.0 (21-02-2018) V10.4 support

As of v0.7.0 code templates should work in V10.4.


Yes, in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

Menu in V10.4

enter image description here

added 542 characters in body
Source Link
Kuba
  • 138.9k
  • 13
  • 297
  • 803

Yesupdates:

21-02-2018 v0.7.0

As of v0.7.0 code templates will work on V10.4, probably even in earlier versions but for 11+I need to check that.

For pre V11 a notebook approach is used instead of an (v10 on todo list)AttachedCell based menu. See .gif at the bottom. To change this you can run: CurrentValue[$FrontEnd, {TaggingRules, "DevTools", "MenuMethod"}] = "Cell" (*or "Notebook" *) but FE crashed for me once or twice and I was not able to reproduce circumstances so do it on your own risk.


Yes, in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs. Do not use on pre V11 as it may crash the FE.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

Menu in V10.4

enter image description here

Yes, but for 11+ (v10 on todo list) and in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs. Do not use on pre V11 as it may crash the FE.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

updates:

21-02-2018 v0.7.0

As of v0.7.0 code templates will work on V10.4, probably even in earlier versions but I need to check that.

For pre V11 a notebook approach is used instead of an AttachedCell based menu. See .gif at the bottom. To change this you can run: CurrentValue[$FrontEnd, {TaggingRules, "DevTools", "MenuMethod"}] = "Cell" (*or "Notebook" *) but FE crashed for me once or twice and I was not able to reproduce circumstances so do it on your own risk.


Yes, in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

Menu in V10.4

enter image description here

added 44 characters in body
Source Link
Kuba
  • 138.9k
  • 13
  • 297
  • 803

Yes, but for 11+ (v10 on todo list) and in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs. Do not use on pre V11 as it may crash the FE.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want  *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors package.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

Yes, but for 11+ and in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs. Do not use on pre V11 as it may crash the FE.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a ReversedColors package:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

Yes, but for 11+ (v10 on todo list) and in a beta stage at the moment. Feedback appreciated.

Should work on Win/MacOs. Do not use on pre V11 as it may crash the FE.

https://github.com/kubaPod/DevTools

Setup

 (*additional package I use to install github assets' paclets, you can download .paclet manually if you want  *) Import["https://raw.githubusercontent.com/kubapod/mpm/master/install.m"] Needs["MPM`"] (*installing the package*) MPMInstall["kubapod", "devtools"] (*changing default .m stylesheet to a dev's stylesheet*) CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions"] = FrontEnd`FileName[{"DevTools", "DevPackage.nb"}] (*test*) FrontEndTokenExecute["NewPackage"] 

How to:

  • Ctrl+1 to open a menu

  • navigate with arrows and hit enter/return or hit a shortkey like n / { / [

Customization

Once you setup a new stylesheet the package should have an additional toolbar with 'Edit code templates' button on the top right. Click on it and a user's templates file should open.

It is just a .m file with a header that should explain everything. It will be improved in future.

Showcase

enter image description here

There is also a dark one based on a build-in ReversedColors.nb stylesheet:

CurrentValue[$FrontEnd, "DefaultPackageStyleDefinitions" ] = FrontEnd`FileName[{"DevTools", "DevPackageDark.nb"}] 

enter image description here

added 305 characters in body
Source Link
Kuba
  • 138.9k
  • 13
  • 297
  • 803
Loading
Source Link
Kuba
  • 138.9k
  • 13
  • 297
  • 803
Loading