HackerTrans
TopNewTrendsCommentsPastAskShowJobs

fctorial

no profile record

comments

fctorial
·il y a 7 ans·discuss
True

  int main() {
    if (a < b)
      if (c > d)
        ;  
  }
You can switch between the less-than and greater-than sign using '%' key in vim. I bet no other ide can do that.

Vim is the javascript of text editors.
fctorial
·il y a 7 ans·discuss
This minimal cmake file should setup the ide for any project, the build will have to be ran externally though. You can setup the ide to debug external binaries as well, as long as it has source information (was built from the current project sources with debug info).

  cmake_minimum_required(VERSION 3.0)
  project(prog)

  include_directories(.)
  file(GLOB_RECURSE sources *.h *.cpp *.c *.hpp)

  add_executable(prog main.c)

variables might have to be tweaked a bit.