0

Within the Cloud9 IDE, is there a shortcut to organize the lines of the Code, similar to the shortcut in Eclipse - Ctrl+A, Ctrl+I ?

Obsidian Phoenix
  • 4,083
  • 1
  • 22
  • 60

3 Answers3

0

What you are looking for is in this section of their documentation. I am not quite sure what you are referring to when you say "organize lines of code", but all of the shortcuts for c9 are in the link.

https://docs.c9.io/docs/keybindings#section-code-manipulation

If you are referring to beautifying your code then this is what you are looking for is Shift + Ctrl + B this will beautify your text. Which is provided in the link.

Ctrl + A is just select all and should work as is.

***********UPDATE**************

With the information just provided, you are using C++ Here is a link to a plugin you can install to help with adding features for that language

https://github.com/invokr/c9.ide.language.cpp

there may be a better one out there, but there are some out there.

gmaniac
  • 940
  • 1
  • 17
  • 33
  • I know that the Ctrl+A is to Select all in its behave same. What i need is the Ctrl+I that work in Eclipse . I tried what you said about Shift + Ctrl + B and he pop the follow message : "This code could not be beautified "c_cpp" is not supported yet – Roey Mizrahi Mar 17 '16 at 16:56
  • I think I am unclear then what you are trying to do, could you explain a little more you are wanting to happen? – gmaniac Mar 17 '16 at 16:58
  • its called Correct Indentation in Eclipse.. you can see more in the other answer here in this thread , I post 2 picture that Illustrates it. – Roey Mizrahi Mar 17 '16 at 17:09
  • have you tried the `beautify text` shortcut? Does that do what you are wanting? – gmaniac Mar 17 '16 at 17:21
  • I already said I tried Shift + Ctrl + B and he pop the follow message : "This code could not be beautified "c_cpp" is not supported yet – Roey Mizrahi 6 hours ago – Roey Mizrahi Mar 17 '16 at 23:43
  • I added more information based on which language you are using, let me know if this helps. – gmaniac Mar 18 '16 at 16:25
  • what I need to download? i entered to the link you provide but I dont understand what i need to do there. – Roey Mizrahi Mar 18 '16 at 19:07
  • Here are the instructions in that repo link I sent you https://github.com/invokr/c9.ide.language.cpp#installation-on-a-local-c9v3-instance – gmaniac Mar 21 '16 at 16:03
0

see the next function (there is no meaning to the code) : Before the Action

Now I do Ctrl+I and see the code now : After The Action

0

Select the text you want to beautify and then press Ctrl+B (on PC/Linux). At time of writing, this only works for HTML, CSS, and JavaScript.

Brady Dowling
  • 4,920
  • 3
  • 32
  • 62
  • In time, there certainly will be. I don't know if the plugin you referenced below provides this functionality. The README doesn't seem to mention support for beautification or anything similar but maybe I missed something. – Brady Dowling Mar 19 '16 at 18:28