Atom Windows version of incomplete Chinese method with code

Source: Internet
Author: User

Just released Atom 1.0. At first sight, I liked it. Don't really like the Big vs code.

Unfortunately no Chinese, so find ah find. Finally found a Dabbler method to Chinese-

Don't like to spray

View the official development document Https://atom.io/docs/api/v1.0.0/MenuManager

and git repository Https://github.com/atom/atom

Because only the method added, there is no elimination method, so this is the way, can not delete the original menu.

Gentlemen can also try it yourself.

And the following Chinese code is based on

Https://github.com/atom/atom/blob/master/menus/win32.cson

The code changed, they did not update the entry, so the Han also lack of command, [find] what, [package], are empty (Khan). There is time to fill it up later.

Specific methods

Open Atom, menu bar-File-open Your Init Script

Insert the following code into the file (that is, the (% User name) \.atom\init.coffee file under User files)

Atom.menu.add [{label:' file ' submenu: [{label: ' Open a new window ', Command: ' Application:new-window '}        {label:' Open a new file ', command: ' Application:new-file '}        {label:' Open File ... ', command: ' Application:open-file '}        {label:' Open Folder ... ', command: ' Application:open-folder '}        {label:' Add a folder to the project ... ', command: ' Application:add-project-folder '}        {label:' reopen the closed project ', command: ' Pane:reopen-closed-item '}        {type:' Separator '}        {label:' Set ', command: ' Application:show-settings '}        {label:' Open config file ', command: ' Application:open-your-config '}        {label:' Open init script file ', command: ' Application:open-your-init-script '}        {label:' Open shortcut key profile ', command: ' Application:open-your-keymap '}        {label:' Open snippets config file ', command: ' Application:open-your-snippets '}        {label:' Open style config file ', command: ' Application:open-your-stylesheet '}        {type:' Separator '}        {label:' save ', command: ' Core:save '}        {label:' Save As ... ', command: ' Core:save-as '}        {label:' Save all Players ', command: ' Window:save-all '}        {type:' Separator '}        {label:' close tag ', command: ' Core:close '}        {label:' Close pane ', command: ' Pane:close '}        {label:' Close the window ', command: ' Window:close '}        {type:' Separator '}        {label:' exit ', command: ' Application:quit '}      ]    }    {label:' edit ' submenu: [{label: ' Undo ', Command: ' Core:undo '}        {label:' Redo ', command: ' Core:redo '}        {type:' Separator '}        {label:' clip ', Command: ' Core:cut '}        {label:' copy ', command: ' Core:copy '}        {label:' Copy path ', command: ' Editor:copy-path '}        {label:' paste ', command: ' Core:paste '}        {label:' Select All ', command: ' Core:select-all '}        {type:' Separator '}        {label:' Comment selected line ', command: ' editor:toggle-line-comments '}        {label:' line edit ', submenu: [{label: ' Indent the selected line to the right ', command: ' Editor:indent-selected-rows '}            {label:' indent the selected line to the left ', command: ' Editor:outdent-selected-rows '}            {label:' Auto indent ', command: ' Editor:auto-indent '}            {type:' Separator '}            {label:' Move up Selected line ', command: ' editor:move-line-up '}            {label:' Move Down selected lines ', command: ' Editor:move-line-down '}            {label:' Copy the selected line ', command: ' Editor:duplicate-lines '}            {label:' Delete selected line ', command: ' Editor:delete-line '}            {label:' Merge to Current line ', command: ' Editor:join-lines '}          ]        }        {label:' text ', submenu: [{label: ' converted to uppercase ', command: ' Editor:upper-case '}            {label:' converted to lowercase ', command: ' Editor:lower-case '}            {type:' Separator '}            {label:' Delete to next word ', command: ' Editor:delete-to-end-of-word '}            {label:' Delete to the end of the previous word ', command: ' Editor:delete-to-previous-word-boundary '}            {label:' Delete to previous word ', command: ' Editor:delete-to-next-word-boundary '}            {label:' Delete selected line ', command: ' Editor:delete-line '}            {type:' Separator '}            {label:' Interactive text ', command: ' Editor:transpose '}          ]        }        {label:' folding ', submenu: [{label: ' Collapse current block ', command: ' Editor:fold-current-row '}            {label:' expand current block ', command: ' Editor:unfold-current-row '}            {label:' Expand all folding blocks ', command: ' Editor:unfold-all '}            {type:' Separator '}            {label:' Collapse all blocks ', command: ' Editor:fold-all '}            {label:' Collapse all 1 blocks ', command: ' Editor:fold-at-indent-level-1 '}            {label:' Collapse all 2 blocks ', command: ' Editor:fold-at-indent-level-2 '}            {label:' Collapse all 3 blocks ', command: ' editor:fold-at-indent-level-3 '}            {label:' Collapse all 4 blocks ', command: ' editor:fold-at-indent-level-4 '}            {label:' Collapse all 5 blocks ', command: ' editor:fold-at-indent-level-5 '}            {label:' Collapse all 6 blocks ', command: ' editor:fold-at-indent-level-6 '}            {label:' Collapse all 7 blocks ', command: ' editor:fold-at-indent-level-7 '}            {label:' Collapse all 8 blocks ', command: ' Editor:fold-at-indent-level-8 '}            {label:' Collapse all 9 blocks ', command: ' editor:fold-at-indent-level-9 '}          ]        }      ]    }    {label:' View ' submenu: [{label: ' Reload Window ', command: ' Window:reload '}        {label:' full Screen ', command: ' Window:toggle-full-screen '}        {label:' Hide menu bar ', command: ' Window:toggle-menu-bar '}        {label:' Panes ' submenu: [{label: ' Open new Pane up ', command: ' pane:split-up '}            {label:' open new pane down ', command: ' Pane:split-down '}            {label:' open new pane to left ', command: ' Pane:split-left '}            {label:' open new pane to the right ', command: ' Pane:split-right '}            {type:' Separator '}            {label:' focus shifts to the next pane ', command: ' Window:focus-next-pane '}            {label:' focus shifts to the previous pane ', Command: ' Window:focus-previous-pane '}            {type:' Separator '}            {label:' focus shifted to the top pane ', command: ' Window:focus-pane-above '}            {label:' focus shifts to the bottom pane ', command: ' Window:focus-pane-below '}            {label:' focus shifts to the left pane ', command: ' Window:focus-pane-on-left '}            {label:' focus shifts to the right pane ', command: ' Window:focus-pane-on-right '}            {type:' Separator '}            {label:' Close pane ', command: ' Pane:close '}          ]        }        {label:' Developer Tools ' submenu: [{label: ' Open in &dev Mode ... ', command: ' Application:open-dev '}            {label:' Run &atom Specs ', command: ' Application:run-all-specs '}            {label:' Run package &specs ', command: ' Window:run-package-specs '}            {label:' review element ', command: ' Window:toggle-dev-tools '}          ]        }        {type:' Separator '}        {label:' Increase the font size ', command: ' Window:increase-font-size '}        {label:' Decrease Font size ', command: ' Window:decrease-font-size '}        {label:' Reset font size ', command: ' Window:reset-font-size '}        {type:' Separator '}        {label:' Toggle Soft &wrap ', command: ' Editor:toggle-soft-wrap '}        {label:' Reset font size ', command: ' Window:toggle:show-settings '}      ]    }    {label:' SELECT ' submenu: [{label: ' Add cursor up ', command: ' Editor:add-selection-above '}        {label:' Add cursor down ', command: ' Editor:add-selection-below '}        {label:' Convert a selection to multiple single-line selections ', Command: ' Editor:split-selections-into-lines '}        {label:' Convert a selection into a row of selections ', Command: ' Editor:consolidate-selections '}        {type:' Separator '}        {label:' Check to the top ', command: ' Core:select-to-top '}        {label:' Check to bottom ', command: ' Core:select-to-bottom '}        {type:' Separator '}        {label:' Check current line ', command: ' Editor:select-line '}        {label:' Check the current word ', command: ' Editor:select-word '}        {label:' Select to start of word ', command: ' Editor:select-to-beginning-of-word '}        {label:' Select to start of line ', command: ' Editor:select-to-beginning-of-line '}        {label:' Select the first character of the current line ', command: ' Editor:select-to-first-character-of-line '}        {label:' Check to the end of the word ', command: ' Editor:select-to-end-of-word '}        {label:' Select to start of line ', command: ' Find-and-replace:elect-to-end-of-line '}      ]    }    {label:' Find ' submenu: []}    {label:' Package ' submenu: []}    {label:' Help ' submenu: [{label: ' View our team ', command: ' Application:open-terms-of-use '}        {label:' View Certificate ', command: ' Application:open-license '}        {label:' version number 1.0.0 ', Enabled:false}        {label:' Install with new and reboot ', command: ' Application:install-update ', Visible:false}        {label:' Check for updates ', command: ' Application:check-for-update ', Visible:false}        {label:' Check for updates ', Enabled:false, Visible:false}        {label:' Download Update ', Enabled:false, Visible:false}        {type:' Separator '}        {label:' Open Development Document page ', command: ' Application:open-documentation '}        {label:' Open Blueprint page ', command: ' Application:open-roadmap '}        {label:' open question and Answer page ', command: ' Application:open-faq '}        {type:' Separator '}        {label:' Open discussion page ', command: ' Application:open-discussions '}        {label:' report a problem ', command: ' Application:report-issue '}        {label:' search problem ', command: ' Application:search-issues '}      ]    }  ]

Atom Windows version of incomplete Chinese method with code

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.