Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
11 votes
3 answers
8k views

How to auto format code from the command line?

Let's say I have a JavaScript in someRandomFile.js and I want to run a command like: formatMyCode someRandomFile.js Then inside the file it just indent everything in a nice way. I want to do format ...
Clay's user avatar
  • 235
2 votes
4 answers
244 views

Programming in Windows 8

I am a semi-experienced Linux user and I write my software explicitly from command line. If I need a compiler, I simply sudo-apt-get it, if I need to run a code I just execute it from command line and ...
drjrm3's user avatar
  • 1,526
2 votes
1 answer
1k views

Formatting Latex in vim - issues with line breaks

I use vim's source code formatting features (the = key will format your selection and pressing gg=G will format the entire source code). However, it seems to not format correctly when it encounters ...
vonhogen's user avatar
  • 2,449
2 votes
1 answer
7k views

How to collapse or expand source code in vim?

How to collapse or expand source code in vim on HTML, PHP, etc? EDIT: I know the basic folding command but what I need is something much more advance and intelligent such as in Visual Studio. I think ...
Jichao's user avatar
  • 7,770