Prevent from using discrete graphics card
| is a brilliant open source code editor by Adobe. The editor is completely written using Javascript. Although sometimes I feel it a little bit slow, it is very powerful as a code editor for web development.

The only thing that annoys me is that the editor will trigger the discrete graphics card on my MacBook Pro Retina that will shorten the battery life of the computer. To solve this, we can add a flag to the Info.plist of application by using the following command:

defaults write /Applications/ NSSupportsAutomaticGraphicsSwitching -bool YES

To remove the settings:

defaults delete /Applications/ NSSupportsAutomaticGraphicsSwitching

If you want to check wheather you are using integrated or discrete display card, you can download gfxCardStatus.

Remark: The problem should be solved automatically on sprint 36 (not released yet as of this blog is published) that the flag is set in the bundle.