Jatana / FastOlympicCoding

Tools for competitive programming for Sublime Text 3 & 4
399 stars 48 forks source link

How do I use the class autocompletion? #7

Closed xlbert closed 2 years ago

xlbert commented 5 years ago

Is there a guide somewhere on how to use the class autocompletion function of the package?

Jatana commented 5 years ago

Well, it is a very intuitive thing. I think you can understand all functionality from the example image.

Each class constists of template size and letter which representing it. See more information in the settings. So, you only need to type this letters as shown in the example image.

CaptainDredge commented 5 years ago

The documentation is still not clear about this. What does template size represent and how can I add my own template? @Jatana it would be very helpful if you can clarify this in the README.md itself

whohet commented 3 years ago

I am facing a problem in the autocompletion feature(Windows). Whenever, i try to autocomplete the recommened stuff for eg. vec to vector<> ,then the std:: appears with it too (i.e std::vector) and it becomes too annoying. I have tried to change the settings but I couldn't succeed. See the below images for betterr understandibilty. Screenshot (38) Screenshot (39)

npanuhin commented 3 years ago

@whohet, I have a possible solution for your problem (disabling this snippet):

1) Get the PackageResourceViewer from Package Control 2) Ctrl + Shift + P -> PackageResourceViewer: Extract package -> choose C++ -> after this press Enter to start extraction 3) Navigate to C:\Program Files\Sublime Text 3\Packages (where Sublime is installed) 4) Delete file C++.sublime-package 5) Go to Preferences -> Browse packages -> C++ folder (PackageResourceViewer extracted it here) -> Snippets folder -> delete (or edit) file std-vector-(v).sublime-snippet

You can read about Sublime snippets here

whohet commented 3 years ago

@whohet, I have a possible solution for your problem (disabling this snippet):

  1. Get the PackageResourceViewer from Package Control
  2. Ctrl + Shift + P -> PackageResourceViewer: Extract package -> choose C++ -> after this press Enter to start extraction
  3. Navigate to C:\Program Files\Sublime Text 3\Packages (where Sublime is installed)
  4. Delete file C++.sublime-package
  5. Go to Preferences -> Browse packages -> C++ folder (PackageResourceViewer extracted it here) -> Snippets folder -> delete (or edit) file std-vector-(v).sublime-snippet

You can read about Sublime snippets here

Hi, there! Thanks for the reply...I will surely see to it.

npanuhin commented 3 years ago

Actually this snippet has nothing to do with FastOlympicCoding - it is part of the standard C++ package.