Git Product home page Git Product logo

abap-sublime-plugin's Introduction

ABAP-Sublime-Plugin

Description: ABAP Syntax Highlighter for Sublime Text 2

How to install it?

  • Open your Package folder. The easiest way to identify the Package folder is to go to ST2 main menu: Preferences -> Browse Packages...
  • Manualy create ABAP folder under your Package folder: ...\Packages\ABAP
  • Extract the content of zip archive into the ABAP folder (!!only the files without ABAP-Sublime-Plugin-master folder!!).

Location of Package folder according your platform:

  • Windows Vista/7: c:\Users[UserName]\AppData\Roaming\Sublime Text 2\Packages
  • OS X/Unix-like: ~/Library/Application Support/Sublime Text 2/Packages

Important notes

  • If the file you are editing has .abp extension, syntax highlighting works automaticaly. Otherwise you have to set the ABAP syntax explicitely (click on the bottom right corner in the ST2 window a choose ABAP).
  • It's quite simple to add more file extensions by editing ABAP.tmLanguage file (located in your ABAP plugin folder under Package folder). Search for fileTypes section in the beginning of the file and add for example line <string>txt</string> after the line <string>abp</string>.
  • If nothing works, restart ST2!

What you can do with ABAP plugin

  • highlight ABAP syntax (keywords, system contstants, name of forms, classes, methods and modules)
  • auto-complete code (it works both keyword suggesting and the snippets)
  • speed up coding with the set of predefined snippets (of course it's very easy to create your owns)
  • get overview of forms, classes, methods and modules on Ctrl+R command
  • comment/uncomment selected blocks of code on Ctrl+/ command
  • one more thing - maybe you would like to try out my Marias card game (Czech only) at http://marias.g6.cz/

Recommendation

I prefer the default color scheme Zenburnesque to achieve the best results.

Go to the main menu: Preferences -> Color Scheme -> Color Scheme - Default -> Zenburnesque.

Define own shortcut for ABAP syntax

Go to the main menu: Preferences -> Key Bindings - User. Place following code inside brackets [ you key bindings here... ]. You can set another shortcut key instead of ctrl+shift+a.


   // Set ABAP syntax
   {"keys": ["ctrl+shift+a"], "command": "set_file_type",
    "args": {"syntax": "Packages/ABAP/ABAP.tmLanguage"}
   },
   // Shortcut for quick switch project	
   { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },	

Don't forget to save the file in the end.

abap-sublime-plugin's People

Contributors

adsworth avatar marcelonmoraes avatar paveljaros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

abap-sublime-plugin's Issues

EXCEPTION not highlighted

Hi,

EXCEPTION was not highlighted in a RAISE EXCEPTION TYPE classname statement.
I had to add EXCEPTION to the keyword list and also remove the |\s*TYPE at the end of the regular expression.

I'm not submitting a pull request yet, as I'm not to sure why the |\s*TYPE is added.

Regards
Adi

Connecton to SAP system - or - how to access the abap files

Hi really interesting and good work here... I'm a big fan of sublime, atom type editors and this looks far nicer than eclipse. But... how do we get the code... The readme does not mention this so I assume its up to you to simply copy&paste between this editor and the SAP editor or to save your classes as plain text files.
ADT is able to read/write the abap repository but its not a published interface unfortuntately. Just wondering if you're still maintaining this and looking at ways to connect to the abap repository?

Reindent

When I reindent my code loose all indenting I did manually.
everything is pushed to the beginning of the line

Regarding Case change

Hi Pavel,

I liked your ABAP plugin and I was also able to run it fine on Sublime text 3. Thanks for that.

However I was wondering if we can make a provision of changing the case of Keywords to Upper Case (like in ABAP editor).

Since I am also a developer, let me know if I can help in some way :)

Regards,
Ravi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.