HackerTrans
TopNewTrendsCommentsPastAskShowJobs

fctorial

no profile record

comments

fctorial
·5 jaar geleden·discuss
Title should mention it's about linux.
fctorial
·6 jaar geleden·discuss
There's a $HOME/src for all the source code. It's on a separate partition.

Subfolders for projects.

Every project has a directory named `my.tmp.dir`, thats in global gitignore. Everything project related goes there.
fctorial
·7 jaar geleden·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
·7 jaar geleden·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.